Better error checking.

This commit is contained in:
Richard Goodwin
2018-10-16 12:25:15 -05:00
parent bd90ef535f
commit adcf8fd2de
3 changed files with 16 additions and 12 deletions

View File

@@ -81,8 +81,11 @@ function move_clips_to_archive () {
done
log "Moved $move_count file(s)."
log "Sending Pushover message"
/root/bin/send-pushover.sh $move_count
if [ -r "/root/.teslaCamPushoverCredentials" ]
then
log "Sending Pushover message for copied files."
/root/bin/send-pushover.sh $move_count
fi
log "Finished moving clips to archive."
}