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

@@ -19,6 +19,9 @@ for file_name in "$CAM_MOUNT"/TeslaCam/saved*; do
done
log "Moved $NUM_FILES_MOVED file(s)."
if [ $NUM_FILES_MOVED -gt 0 ]
then
/root/bin/send-pushover "$NUM_FILES_MOVED"
fi
log "Finished moving clips to archive."