move the --quiet option and use -- to indicate that $REMOTE_BRANCH isn't a file
authorDon Armstrong <don@donarmstrong.com>
Thu, 10 Nov 2016 17:02:18 +0000 (09:02 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 10 Nov 2016 17:02:18 +0000 (09:02 -0800)
update_spamassassin

index a8000ab..d432ad7 100755 (executable)
@@ -75,7 +75,7 @@ EOF
 cp -ar $SACONFIG $TMPDIR/.;
 OLDDIR="$(pwd)";
 cd $TMPDIR/spamassassin_config;
-if ! git merge --quiet --ff-only $REMOTE_BRANCH; then
+if ! git merge --quiet --ff-only $REMOTE_BRANCH --; then
     FAILUREMESSAGE="The update from $REMOTE_BRANCH to $REMOTE_BRANCH_HEAD\nis not a fast-forward\n\n"
     report_failure;
 fi;
@@ -85,7 +85,7 @@ if ! spamassassin -p $TMPDIR/spamassassin_config/$USERCONF --lint > $TMPDIR/sa_l
     report_failure
 fi;
 cd "$SACONFIG":
-git merge --ff-only $REMOTE_BRANCH --quiet;
+git merge --ff-only  --quiet $REMOTE_BRANCH --;
 trap - 0
 remove_pidfile
 rm -rf "$TMPDIR"