]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
Don't start new builds when an other one is already running
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Oct 2015 18:56:25 +0000 (20:56 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Oct 2015 18:56:25 +0000 (20:56 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index e3649f93babff6892cea68c651365043d389a8ff..f3eaa3a0e64f848a44b18a889da95194f60e51b4 100755 (executable)
--- 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