From 008f6645ff9df505783b6312adebe0d6e6c44990 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 5 Aug 2024 08:06:57 +0200 Subject: build-all-with-docker: do not run if shutdownasap in progress --- build-all-with-docker | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build-all-with-docker') 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 -- cgit v1.2.3-70-g09d2