diff options
author | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-05 08:06:57 +0200 |
---|---|---|
committer | Erich Eckner <erich.eckner.ext@bestsecret.com> | 2024-08-05 08:06:57 +0200 |
commit | 008f6645ff9df505783b6312adebe0d6e6c44990 (patch) | |
tree | 46c7554006822d0061a3a541678be56f8e45840b | |
parent | 6c4d67dddd7151e842dd9ce529398c4d2536c7c6 (diff) | |
download | archlinuxewe-008f6645ff9df505783b6312adebe0d6e6c44990.tar.xz |
build-all-with-docker: do not run if shutdownasap in progress
-rwxr-xr-x | build-all-with-docker | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-all-with-docker b/build-all-with-docker index d012b19a0..aae8676a8 100755 --- a/build-all-with-docker +++ b/build-all-with-docker @@ -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 + if [ $# -eq 1 ] \ && [ -z "${1##*/PKGBUILD}" ] \ && [ -f "$1" ]; then |