From c1d80f3087ae9170beb7f9f6e092e57a549d2b69 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 25 Jun 2021 14:20:31 -0400 Subject: derp --- bin/sbotools-update-db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3