diff options
Diffstat (limited to 'lease-script')
-rw-r--r-- | lease-script | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lease-script b/lease-script index 97d5372..44360a4 100644 --- a/lease-script +++ b/lease-script @@ -40,10 +40,10 @@ $LogPrintExit2 debug $0 ("DHCP Server " . $leaseServerName . " " . \ } } -:foreach Script in=$RunOrder do={ +:foreach Order,Script in=$RunOrder do={ :if ([ :len [ / system script job find where script=$Script ] ] < 2) do={ :do { - $LogPrintExit2 debug $0 ("Running script: " . $Script) false; + $LogPrintExit2 debug $0 ("Running script with order " . $Order . ": " . $Script) false; / system script run $Script; } on-error={ $LogPrintExit2 warning $0 ("Running script '" . $Script . "' failed!") false; |