upload-backup: exit with error on error

The error has been logged before, so just make sure to exit with error.
This commit is contained in:
Christian Hesse 2020-10-07 15:29:18 +02:00
parent 2be4a2ce98
commit 1cb7194ec5

View file

@ -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!";
}