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

@@ -1,5 +1,10 @@
#!/bin/bash -eu
function log () {
echo "$( date )" >> "$LOG_FILE"
echo "$1" >> "$LOG_FILE"
}
source /root/.teslaCamPushoverCredentials
curl -F "token=$pushover_app_key" \