From 96f3120e35da7f017174fb3a92b256ad3494edfb Mon Sep 17 00:00:00 2001 From: Skylar Sadlier Date: Sun, 18 Nov 2018 16:08:07 -0700 Subject: [PATCH] Update run Fix "unary operator expected" that appears in the first couple lines of the log --- install/etc/s6/services/10-db-backup/run | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/etc/s6/services/10-db-backup/run b/install/etc/s6/services/10-db-backup/run index 8310f1c..f5b4edd 100755 --- a/install/etc/s6/services/10-db-backup/run +++ b/install/etc/s6/services/10-db-backup/run @@ -2,7 +2,7 @@ date >/dev/null -if [ $1 != "NOW" ]; then +if [ "$1" != "NOW" ]; then sleep 10 fi @@ -37,7 +37,7 @@ MD5=${MD5:-TRUE} SPLIT_DB=${SPLIT_DB:-FALSE} TMPDIR=/tmp/backups -if [ $1 = "NOW" ]; then +if [ "$1" = "NOW" ]; then DB_DUMP_BEGIN=+0 MANUAL=TRUE fi @@ -298,4 +298,4 @@ echo '** [db-backup] Initialized at at '$(date) fi done -fi \ No newline at end of file +fi