aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages.template.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'capsman-download-packages.template.rsc')
-rw-r--r--capsman-download-packages.template.rsc8
1 files changed, 5 insertions, 3 deletions
diff --git a/capsman-download-packages.template.rsc b/capsman-download-packages.template.rsc
index deb15a7..c0e815b 100644
--- a/capsman-download-packages.template.rsc
+++ b/capsman-download-packages.template.rsc
@@ -83,9 +83,11 @@
}
:if ($Updated = true) do={
- :local Script ([ /system/script/find where source~"\n# provides: capsman-rolling-upgrade%TEMPL%\n" ]->0);
- :if ([ :len $Script ] > 0) do={
- /system/script/run $Script;
+ :local Scripts [ /system/script/find where source~"\n# provides: capsman-rolling-upgrade%TEMPL%\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 ];
/interface/wifi/capsman/remote-cap/upgrade [ find where version!=$InstalledVersion ];