From 574ecd7387079e1ece6c206860f850661efe813d Mon Sep 17 00:00:00 2001 From: cimryan Date: Sat, 27 Oct 2018 09:29:25 -0700 Subject: [PATCH] Use the numeric comparison operator to determine if $NUM_FILES_MOVED is greater than 0 --- run/send-pushover | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/send-pushover b/run/send-pushover index 9d5ffa5..7fc5402 100644 --- a/run/send-pushover +++ b/run/send-pushover @@ -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."