diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sbotools-update-db.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sbotools-update-db.sh b/bin/sbotools-update-db.sh index 09192f7..a844986 100755 --- a/bin/sbotools-update-db.sh +++ b/bin/sbotools-update-db.sh @@ -19,7 +19,7 @@ head -n 1 $SBOTREE/ChangeLog.txt > $DATEFILE.new # 'diff' returns true if the files are the same (non-intuitive). # if there hasn't been an SBo update since the last DB update, we # don't need to update the DB again. -if [ -e $DATEFILE -a diff $DATEFILE $DATEFILE.new > /dev/null ]; then +if [ -e $DATEFILE ] && diff $DATEFILE $DATEFILE.new > /dev/null ; then rm -f $DATEFILE.new exit 0 fi |