mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-17 00:01:20 +02:00
mod/scriptrunonce: always give proper return code
This commit is contained in:
parent
1c957dbc6d
commit
5715bc7b57
1 changed files with 3 additions and 0 deletions
|
@ -46,7 +46,10 @@
|
||||||
[ :parse $Source ];
|
[ :parse $Source ];
|
||||||
} on-error={
|
} on-error={
|
||||||
$LogPrint warning $0 ("The script '" . $Script . "' failed to run!");
|
$LogPrint warning $0 ("The script '" . $Script . "' failed to run!");
|
||||||
|
:return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:return true;
|
||||||
}
|
}
|
||||||
} on-error={
|
} on-error={
|
||||||
:global ExitError; $ExitError false $0;
|
:global ExitError; $ExitError false $0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue