mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 01:54:29 +02:00
mod/bridge-port-to: $BridgePortTo: use $ExitError to indicate unintentional error
This commit is contained in:
parent
1fe90a6e9a
commit
5db686a15c
1 changed files with 4 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
:global BridgePortTo;
|
||||
|
||||
:set BridgePortTo do={
|
||||
:set BridgePortTo do={ :do {
|
||||
:local BridgePortTo [ :tostr $1 ];
|
||||
|
||||
:global IfThenElse;
|
||||
|
@ -65,4 +65,6 @@
|
|||
$LogPrint info $0 ("Re-enabling interfaces...");
|
||||
/interface/ethernet/enable $InterfaceReEnable;
|
||||
}
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue