Extra checks for whether to send push

This commit is contained in:
Richard Goodwin
2018-10-26 09:06:37 -05:00
parent 1bf8e642bf
commit e15506681d
2 changed files with 4 additions and 1 deletions

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."