aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-06-25 14:20:31 -0400
committerB. Watson <yalhcru@gmail.com>2021-06-25 14:20:31 -0400
commitc1d80f3087ae9170beb7f9f6e092e57a549d2b69 (patch)
tree6afdce307cbbe1b2f891d609bab182e6e1e8a1cf
parent87b610b4cafabf3abad7f8a4f866286f96d3a372 (diff)
downloadlimnoria.slackfacts.plugins-c1d80f3087ae9170beb7f9f6e092e57a549d2b69.tar.gz
derp
-rwxr-xr-xbin/sbotools-update-db.sh2
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