aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-06-25 14:19:21 -0400
committerB. Watson <yalhcru@gmail.com>2021-06-25 14:19:21 -0400
commit87b610b4cafabf3abad7f8a4f866286f96d3a372 (patch)
tree0797576f607522a0fd265b297bb9316319dbe6b8
parent3d35e2ba0cc2b2de58287ab24585082552d544d6 (diff)
downloadlimnoria.slackfacts.plugins-87b610b4cafabf3abad7f8a4f866286f96d3a372.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 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