diff options
-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' |