summaryrefslogtreecommitdiff
path: root/sign-and-upload-all
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-06-25 14:09:57 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-07-09 14:50:01 +0200
commit0aec334fd23768f7c43d3210064711f441156013 (patch)
tree4a907030fd2c09bc085b56872e300eaac0ccc594 /sign-and-upload-all
parent0edcfb6f07b27b56e4a378bac689d5b91a976423 (diff)
downloadarchlinuxewe-0aec334fd23768f7c43d3210064711f441156013.tar.xz
sign-and-upload-all: add lock
Diffstat (limited to 'sign-and-upload-all')
-rwxr-xr-xsign-and-upload-all5
1 files changed, 5 insertions, 0 deletions
diff --git a/sign-and-upload-all b/sign-and-upload-all
index 02cf1265a..fe202a333 100755
--- a/sign-and-upload-all
+++ b/sign-and-upload-all
@@ -2,6 +2,11 @@
cd "$(dirname "$(readlink -e "$0")")"
+exec 9> sign-and-upload-all.lock
+if ! flock -n 9; then
+ >&2 echo 'another sign-and-upload-all still holds the lock'
+ exit 1
+fi
for distro in arch artix; do
upkgs=$(