fix string equality and quoting in update_spamassassin
authorDon Armstrong <don@debian.org>
Tue, 1 Jan 2008 13:08:54 +0000 (13:08 +0000)
committerDon Armstrong <don@debian.org>
Tue, 1 Jan 2008 13:08:54 +0000 (13:08 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@124 0b7a5b0c-1f2c-0410-bd74-c376f8064c91

update_spamassassin

index b564136..0e08376 100755 (executable)
@@ -9,10 +9,10 @@ SVN=$(which svn)
 
 TMPDIR=$(mktemp -d);
 
-if [ "$HOSTNAME" == "rietz" ]; then
+if [ "$HOSTNAME" = "rietz" ]; then
     BASEDIR="/org/bugs.debian.org"
     USERCONF="bugs/user_prefs";
-elif [ "$HOSTNAME" == "liszt" ]; then
+elif [ "$HOSTNAME" = "liszt" ]; then
     BASEDIR="/var/list/.etc";
     USERCONF="lists/user_prefs";
 else
@@ -28,7 +28,7 @@ ORIGREV=$(svn info $SACONFIG |awk '/^Revision:/{print $2}')
 NEWREV=$(svn info $(svn info $SACONFIG|awk '/^URL:/{print $2}')|awk '/^Revision:/{print $2}')
 
 # no changes, bug out.
-if [ $ORIGREV -ge $NEWREV ]; then
+if [ "$ORIGREV" -ge "$NEWREV" ]; then
     exit 0;
 fi;