]> git.donarmstrong.com Git - spamassassin_config.git/blobdiff - update_spamassassin
move the --quiet option and use -- to indicate that $REMOTE_BRANCH isn't a file
[spamassassin_config.git] / update_spamassassin
index a8000ab2682f1e5d537d5dfc55001882670272f7..d432ad79d97f4d313426c28e9a1a0d5aeae3e805 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"