From a92a39debbf163e499ea08bba4672618698cd8a3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 5 Aug 2024 08:07:31 +0200 Subject: sign-and-upload-all: do not run if shutdownasap in progress --- sign-and-upload-all | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sign-and-upload-all') 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' -- cgit v1.2.3-70-g09d2