From 3870da9b1067d64a037fdd205d3be174199169d6 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 15 Sep 2015 23:07:59 +0200 Subject: reproducible: bugfix, dont let oneself block oneself… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/schroot-create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index 31d1bed0..54293129 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -184,8 +184,8 @@ bootstrap() { cleanup_schroot_sessions() { # FIXME: if this works well, move to _common.sh and use the same function from _maintenance.sh local RESULT="" - for loop in $(seq 0 19) ; do - ps fax|grep -v grep |grep schroot || for i in $(schroot --all-sessions -l ) ; do ps fax|grep -v grep |grep schroot || schroot -e -c $i ; done + for loop in $(seq 0 40) ; do + ps fax|grep -v grep | grep -v schroot-create.sh |grep schroot || for i in $(schroot --all-sessions -l ) ; do ps fax|grep -v grep |grep -v schroot-create.sh | grep schroot || schroot -e -c $i ; done RESULT=$(schroot --all-sessions -l) if [ -z "$RESULT" ] ; then break -- cgit v1.2.3-70-g09d2