From 1cb7194ec518369bd3d03ea28c12d9b4eee6cc7b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 7 Oct 2020 15:29:18 +0200 Subject: upload-backup: exit with error on error The error has been logged before, so just make sure to exit with error. --- upload-backup | 4 ++++ 1 file changed, 4 insertions(+) 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!"; +} -- cgit v1.2.3-54-g00ecf