aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages.capsman.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-07-11 08:55:26 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-07-11 08:57:09 +0200
commit3fd1896ad622f8097cc14af8f37114f9fc47f5b7 (patch)
tree2a834b5dff6e2f6a83e86f39bd30e102b0c5111f /capsman-download-packages.capsman.rsc
parent78dfc568c10332ea63cc26e39ccf165f3d384c9e (diff)
capsman-download-packages: support running several scripts...
... as it is possible to have more than just one providing the functionality.
Diffstat (limited to 'capsman-download-packages.capsman.rsc')
-rw-r--r--capsman-download-packages.capsman.rsc8
1 files changed, 5 insertions, 3 deletions
diff --git a/capsman-download-packages.capsman.rsc b/capsman-download-packages.capsman.rsc
index 84d36f7..4f9ab9d 100644
--- a/capsman-download-packages.capsman.rsc
+++ b/capsman-download-packages.capsman.rsc
@@ -73,9 +73,11 @@
}
:if ($Updated = true) do={
- :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade.capsman\n" ]->0);
- :if ([ :len $Script ] > 0) do={
- /system/script/run $Script;
+ :local Scripts [ /system/script/find where source~"\n# provides: capsman-rolling-upgrade.capsman\n" ];
+ :if ([ :len $Scripts ] > 0) do={
+ :foreach Script in=$Scripts do={
+ /system/script/run $Script;
+ }
} else={
/caps-man/remote-cap/upgrade [ find where version!=$InstalledVersion ];
}