forked from evolix/ansible-roles
bash syntax : `` → $()
This commit is contained in:
parent
5b9d2a2776
commit
2386733231
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
DIR="/var/log/apache-status"
|
DIR="/var/log/apache-status"
|
||||||
URL="http://127.0.0.1/server-status"
|
URL="http://127.0.0.1/server-status"
|
||||||
TS=`date +%Y%m%d%H%M%S`
|
TS=$(date +%Y%m%d%H%M%S)
|
||||||
FILE="${DIR}/${TS}.html"
|
FILE="${DIR}/${TS}.html"
|
||||||
|
|
||||||
if [ ! -d "${DIR}" ]; then
|
if [ ! -d "${DIR}" ]; then
|
||||||
|
|
Loading…
Reference in a new issue