From 87b610b4cafabf3abad7f8a4f866286f96d3a372 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 25 Jun 2021 14:19:21 -0400 Subject: derp --- bin/sbotools-update-db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/sbotools-update-db.sh b/bin/sbotools-update-db.sh index 07ef9ec..09192f7 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 && diff $DATEFILE $DATEFILE.new > /dev/null ]; then +if [ -e $DATEFILE -a diff $DATEFILE $DATEFILE.new > /dev/null ]; then rm -f $DATEFILE.new exit 0 fi -- cgit v1.2.3