summaryrefslogtreecommitdiff
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
parent0edcfb6f07b27b56e4a378bac689d5b91a976423 (diff)
downloadarchlinuxewe-0aec334fd23768f7c43d3210064711f441156013.tar.xz
sign-and-upload-all: add lock
-rw-r--r--.gitignore1
-rwxr-xr-xsign-and-upload-all5
2 files changed, 6 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 5c6233e38..35d990fb0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,3 +27,4 @@ trunk
*.deb
.idea
build-all-with-docker.lock
+sign-and-upload-all.lock
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=$(