diff options
author | B. Watson <yalhcru@gmail.com> | 2021-06-25 14:20:31 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-06-25 14:20:31 -0400 |
commit | c1d80f3087ae9170beb7f9f6e092e57a549d2b69 (patch) | |
tree | 6afdce307cbbe1b2f891d609bab182e6e1e8a1cf | |
parent | 87b610b4cafabf3abad7f8a4f866286f96d3a372 (diff) | |
download | limnoria.slackfacts.plugins-c1d80f3087ae9170beb7f9f6e092e57a549d2b69.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 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 |