aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-10-07 15:29:18 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-10-07 23:27:09 +0200
commit1cb7194ec518369bd3d03ea28c12d9b4eee6cc7b (patch)
tree8b1ff9f7d4efaa8d6f3e94408c6d3eb27d54c08c
parent2be4a2ce9888f1c78f516bac5587e6a5e0e18655 (diff)
upload-backup: exit with error on error
The error has been logged before, so just make sure to exit with error.
-rw-r--r--upload-backup4
1 files changed, 4 insertions, 0 deletions
diff --git a/upload-backup b/upload-backup
index 3c09b58..7fd092e 100644
--- a/upload-backup
+++ b/upload-backup
@@ -71,3 +71,7 @@ $SendNotification ([ $SymbolForNotification [ $IfThenElse ($Failed > 0) "warning
[ $DeviceInfo ] . "\n\n" . \
"Backup file: " . $BackupFile . "\n" . \
"Config file: " . $ConfigFile) "" "true";
+
+:if ($Failed = 1) do={
+ :error "An error occured!";
+}