diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-15 23:07:59 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-15 23:07:59 +0200 |
commit | 3870da9b1067d64a037fdd205d3be174199169d6 (patch) | |
tree | 97d753c2043506817f7d468bdb485ad042f7209f /bin | |
parent | 64ac8e54330cc083d352da8d8def7bc1400f3786 (diff) | |
download | jenkins.debian.net-3870da9b1067d64a037fdd205d3be174199169d6.tar.xz |
reproducible: bugfix, dont let oneself block oneself…
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/schroot-create.sh | 4 |
1 files 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 |