aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-12-05 09:50:44 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-12-05 11:41:49 +0100
commit3db466f476ae9bdf51a27647ead8ff34800efd0d (patch)
tree84d7a5facf8cdb71cdbaa69f52021228b9f24725
parentb8db93918fa0f15b4b5113c8d98364b0a86607cc (diff)
capsman-rolling-upgrade: lock against multiple invocation
-rw-r--r--capsman-rolling-upgrade4
1 files changed, 4 insertions, 0 deletions
diff --git a/capsman-rolling-upgrade b/capsman-rolling-upgrade
index 7723f93..7e172cc 100644
--- a/capsman-rolling-upgrade
+++ b/capsman-rolling-upgrade
@@ -5,6 +5,10 @@
#
# upgrade CAPs one after another
+:global ScriptLock;
+
+$ScriptLock "capsman-rolling-upgrade";
+
:local InstalledVersion [ / system package update get installed-version ];
:local RemoteCapCount [ /caps-man remote-cap print count-only ];