Use the numeric comparison operator to determine if $NUM_FILES_MOVED is greater than 0

This commit is contained in:
cimryan
2018-10-27 09:29:25 -07:00
parent 76924aba06
commit 574ecd7387

View File

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