aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--capsman-download-packages5
1 files changed, 4 insertions, 1 deletions
diff --git a/capsman-download-packages b/capsman-download-packages
index 2a5a0d0..dc95afe 100644
--- a/capsman-download-packages
+++ b/capsman-download-packages
@@ -5,8 +5,11 @@
#
# download and cleanup packages for CAP installation from CAPsMAN
-:global DownloadPackage;
:global CleanFilePath;
+:global DownloadPackage;
+:global ScriptLock;
+
+$ScriptLock "capsman-download-packages";
:local PackagePath [ $CleanFilePath [ / caps-man manager get package-path ] ];
:local InstalledVersion [ / system package update get installed-version ];