aboutsummaryrefslogtreecommitdiffstats
path: root/capsman-download-packages
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-12-05 09:48:50 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-12-05 11:41:49 +0100
commitb8db93918fa0f15b4b5113c8d98364b0a86607cc (patch)
tree3b149c6ea85aaff1987d4c665ecff9a7b3a97e0e /capsman-download-packages
parent9548641b606302f9d66bedabda08ca73be1ed04f (diff)
capsman-download-packages: lock against multiple invocation
Diffstat (limited to 'capsman-download-packages')
-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 ];