aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-rolling-upgrade.capsman.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'capsman-rolling-upgrade.capsman.rsc')
-rw-r--r--capsman-rolling-upgrade.capsman.rsc10
1 files changed, 4 insertions, 6 deletions
diff --git a/capsman-rolling-upgrade.capsman.rsc b/capsman-rolling-upgrade.capsman.rsc
index 9379b24..16a3498 100644
--- a/capsman-rolling-upgrade.capsman.rsc
+++ b/capsman-rolling-upgrade.capsman.rsc
@@ -15,14 +15,14 @@
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
-:local Main do={
- :local ScriptName [ :tostr $1 ];
+:do {
+ :local ScriptName [ :jobname ];
:global LogPrintExit2;
:global ScriptLock;
:if ([ $ScriptLock $ScriptName ] = false) do={
- :return false;
+ :error false;
}
:local InstalledVersion [ /system/package/update/get installed-version ];
@@ -43,6 +43,4 @@
:delay ($Delay . "s");
}
}
-}
-
-$Main [ :jobname ];
+} on-error={ }