summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-05 08:07:31 +0200
committerErich Eckner <erich.eckner.ext@bestsecret.com>2024-08-05 08:07:31 +0200
commita92a39debbf163e499ea08bba4672618698cd8a3 (patch)
treee2d101649d0193564518d8d19cefa681d5156049
parent008f6645ff9df505783b6312adebe0d6e6c44990 (diff)
downloadarchlinuxewe-a92a39debbf163e499ea08bba4672618698cd8a3.tar.xz
sign-and-upload-all: do not run if shutdownasap in progress
-rwxr-xr-xsign-and-upload-all6
1 files changed, 6 insertions, 0 deletions
diff --git a/sign-and-upload-all b/sign-and-upload-all
index e654d80ef..625c61dc2 100755
--- a/sign-and-upload-all
+++ b/sign-and-upload-all
@@ -2,6 +2,12 @@
cd "$(dirname "$(readlink -e "$0")")"
+shutdownasap_progress=$(shutdownasap -g || echo 'none')
+if [ "${shutdownasap_progress" != 'none' ]; then
+ >&2 printf 'shutdownasap in progress: %s\n' "${shutdownasap_state}"
+ exit 1
+fi
+
exec 9> sign-and-upload-all.lock
if ! flock -n 9; then
>&2 echo 'another sign-and-upload-all still holds the lock'