mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-22 09:43:30 +02:00
update-tunnelbroker: use :onerror for outer block
This commit is contained in:
parent
fe3d9f8418
commit
d2af793683
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@
|
||||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||||
|
|
||||||
:local ExitOK false;
|
:local ExitOK false;
|
||||||
:do {
|
:onerror Err {
|
||||||
:local ScriptName [ :jobname ];
|
:local ScriptName [ :jobname ];
|
||||||
|
|
||||||
:global CertificateAvailable;
|
:global CertificateAvailable;
|
||||||
|
@ -69,6 +69,6 @@
|
||||||
/interface/6to4/set $Interface local-address=$PublicAddress;
|
/interface/6to4/set $Interface local-address=$PublicAddress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} on-error={
|
} do={
|
||||||
:global ExitError; $ExitError $ExitOK [ :jobname ];
|
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue