aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lease-script8
1 files changed, 6 insertions, 2 deletions
diff --git a/lease-script b/lease-script
index 37d0c39..72f96eb 100644
--- a/lease-script
+++ b/lease-script
@@ -30,6 +30,10 @@
:foreach Script in=[ / system script find where source~("\n# provides: lease-script " . $State . "\n") ] do={
:local ScriptName [ / system script get $Script name ];
- :log debug ("Running script from lease-script: " . $ScriptName);
- / system script run $Script;
+ :do {
+ :log debug ("Running script from lease-script: " . $ScriptName);
+ / system script run $Script;
+ } on-error={
+ :log warning ("Running script '" . $ScriptName . "' from lease-script failed!");
+ }
}