NEWREV=$(svn info $(svn info $SACONFIG|awk '/^URL:/{print $2}')|awk '/^Revision:/{print $2}')
# no changes, bug out.
-if [ "$ORIGREV" -ge "$NEWREV" ]; then
+if [ "0$ORIGREV" -ge "0$NEWREV" ]; then
exit 0;
fi;
# Hrm; a previous update failed; don't report again until the file
# is removed
if [ -e "$SACONFIG/failed_update" ]; then
+ rm -rf "$TMPDIR"
exit 0;
fi;
echo "$FAILUREMESSAGE" >> "$SACONFIG/failed_update"
Please fix the problem and then remove
$SACONFIG/failed_update
EOF
+ rm -rf "$TMPDIR"
exit 1;
}