mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-29 20:54:28 +02: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:
parent
2be4a2ce98
commit
1cb7194ec5
1 changed files with 4 additions and 0 deletions
|
@ -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!";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue