diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-05 08:07:31 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-05 08:07:31 +0200 |
commit | a92a39debbf163e499ea08bba4672618698cd8a3 (patch) | |
tree | e2d101649d0193564518d8d19cefa681d5156049 /sign-and-upload-all | |
parent | 008f6645ff9df505783b6312adebe0d6e6c44990 (diff) | |
download | archlinuxewe-a92a39debbf163e499ea08bba4672618698cd8a3.tar.xz |
sign-and-upload-all: do not run if shutdownasap in progress
Diffstat (limited to 'sign-and-upload-all')
-rwxr-xr-x | sign-and-upload-all | 6 |
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' |