bug fix: script tries to create a filename 0 when files sent is 0

This commit is contained in:
Ray Tanaka
2018-10-25 15:27:17 -07:00
parent 9bb8f1e046
commit 00d77474b1

View File

@@ -7,7 +7,7 @@ function log () {
echo "$1" >> "$LOG_FILE"
}
if [ -r "/root/.teslaCamPushoverCredentials" ] && [ $NUM_FILES_MOVED > 0 ]
if [ -r "/root/.teslaCamPushoverCredentials" ] && [ $NUM_FILES_MOVED -gt 0 ]
then
log "Sending Pushover message for moved files."