summaryrefslogtreecommitdiff
path: root/hourly.sh
diff options
context:
space:
mode:
authorAdam Spragg <adam@spragg-ssl.co.uk>2018-08-09 19:11:41 +0100
committerAdam Spragg <adam@spragg-ssl.co.uk>2018-08-09 19:11:41 +0100
commitec1a2cb73fdf7346a47330b4cd7d0c9b3f7143b0 (patch)
tree5dcbb1893e1e655ad59d82561ab9d459216cc386 /hourly.sh
parent4dd62a4934ca72a9ee6842da347408a28c5d490c (diff)
Consistently quote and use "{"/"}" with shell variables
Diffstat (limited to 'hourly.sh')
-rwxr-xr-xhourly.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/hourly.sh b/hourly.sh
index c865435..8fb7b62 100755
--- a/hourly.sh
+++ b/hourly.sh
@@ -1,12 +1,12 @@
#! /bin/sh
DOMAIN="spragg-ssl.co.uk"
-SITEROOT="/srv/www/$DOMAIN"
+SITEROOT="/srv/www/${DOMAIN}"
DATE=`/bin/date +%Y-%m-%d`
-LOGFILE="$SITEROOT/log/updates.$DATE.log"
+LOGFILE="${SITEROOT}/log/updates.${DATE}.log"
TSFMT="%b %d %H:%M:%S"
# Update rawdog
-/usr/bin/rawdog --dir "$SITEROOT/rawdog" --update --write 2>&1 | /usr/bin/ts "$TSFMT rawdog:" >>$LOGFILE
+/usr/bin/rawdog --dir "${SITEROOT}/rawdog" --update --write 2>&1 | /usr/bin/ts "${TSFMT} rawdog:" >>"${LOGFILE}"