From 661c8597bdbbebf11b2d69b25e9ee275a6c51733 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 7 Jan 2019 08:44:27 -0600 Subject: [PATCH] Update run.sh --- run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 9d399cf..d6e21c8 100755 --- a/run.sh +++ b/run.sh @@ -4,7 +4,7 @@ source /opt/mysqlbu/settings.conf cd /opt/mysqlbu #echo "" -if [ $1 != "backup" ]; then +if [ "$1" != "backup" ]; then if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then git fetch origin master >/dev/null 2>&1 git reset --hard origin/master >/dev/null 2>&1