aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-08-07 13:02:58 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-08-07 22:10:44 +0200
commit5ea74968d942140aea79b7e001c8174f32b77e46 (patch)
tree02a833f88862995a21054edaecba82fe113c2248 /capsman-download-packages.rsc
parent0f787f9b030408fd2500bb036ff5816df27012b0 (diff)
capsman-download-packages: find script by code comment
Diffstat (limited to 'capsman-download-packages.rsc')
-rw-r--r--capsman-download-packages.rsc5
1 files changed, 3 insertions, 2 deletions
diff --git a/capsman-download-packages.rsc b/capsman-download-packages.rsc
index 08edd59..2dd3bcd 100644
--- a/capsman-download-packages.rsc
+++ b/capsman-download-packages.rsc
@@ -78,8 +78,9 @@ $WaitFullyConnected;
}
:if ($Updated = true) do={
- :if ([ :len [ /system/script/find where name="capsman-rolling-upgrade" ] ] > 0) do={
- /system/script/run capsman-rolling-upgrade;
+ :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade\n" ]->0);
+ :if ([ :len $Script ] > 0) do={
+ /system/script/run $Script;
} else={
/caps-man/remote-cap/upgrade [ find where version!=$InstalledVersion ];
}