mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
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:
@@ -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!";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user