diff options
author | B. Watson <yalhcru@gmail.com> | 2021-06-25 14:19:21 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-06-25 14:19:21 -0400 |
commit | 87b610b4cafabf3abad7f8a4f866286f96d3a372 (patch) | |
tree | 0797576f607522a0fd265b297bb9316319dbe6b8 | |
parent | 3d35e2ba0cc2b2de58287ab24585082552d544d6 (diff) | |
download | limnoria.slackfacts.plugins-87b610b4cafabf3abad7f8a4f866286f96d3a372.tar.gz |
derp
-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 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 |