]> git.donarmstrong.com Git - spamassassin_config.git/commitdiff
* fix update spamassassin to cd back to the original directory, which
authorDon Armstrong <don@debian.org>
Sat, 19 Sep 2009 23:44:12 +0000 (23:44 +0000)
committerDon Armstrong <don@debian.org>
Sat, 19 Sep 2009 23:44:12 +0000 (23:44 +0000)
   hopefully will stop problems with removing the tempdir

git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@316 0b7a5b0c-1f2c-0410-bd74-c376f8064c91

update_spamassassin

index 3ffa065e8afa39deb1eca7560dff10794904dd3f..ef9fef7fd300a2c44137406c359e0648c6a82e8f 100755 (executable)
@@ -69,6 +69,7 @@ EOF
 }
 
 cp -ar $SACONFIG $TMPDIR/.
+OLDDIR="$(pwd)"
 cd $TMPDIR/spamassassin_config;
 svn update -q --non-interactive; 
 if svn status |grep -q '^C'; then
@@ -76,7 +77,7 @@ if svn status |grep -q '^C'; then
     FAILUREMESSAGE="$FAILUREMESSAGE$(svn status|grep ^C)";
     report_failure
 fi;
-cd - >/dev/null 2>&1
+cd "$(pwd)"
 
 if ! spamassassin -p $TMPDIR/spamassassin_config/$USERCONF --lint > $TMPDIR/sa_lint 2>&1; then
     FAILUREMESSAGE="$(echo -e 'spamassassin -p $TMPDIR/spamassassin_config/$USERCONF --lint\nfailed with\n'| cat - $TMPDIR/sa_lint)";