From b9def77514f362efa922d9676d80f70629d7ba38 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 3 Oct 2015 20:56:25 +0200 Subject: [PATCH] Don't start new builds when an other one is already running Signed-off-by: Michael Tremer --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index e3649f9..f3eaa3a 100755 --- a/build.sh +++ b/build.sh @@ -123,7 +123,8 @@ unlock() { # Don't start again if the script is already running -if is_locked; then +# or if an other build script is running +if is_locked || pgrep make.sh >/dev/null; then exit 0 fi -- 2.47.3