diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-07 04:03:47 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-07 04:03:47 +0200 |
commit | 170bc415fe017af3cd9e59e4b0991992e5481618 (patch) | |
tree | 58c335b1bac82f7155af036b9a994585174e32ac /bin/schroot-create.sh | |
parent | 4ab568ef4182afa80be1b64ef54105d7d5152bee (diff) | |
download | jenkins.debian.net-170bc415fe017af3cd9e59e4b0991992e5481618.tar.xz |
reproducible: really deal with ssh failures gracefully
Diffstat (limited to 'bin/schroot-create.sh')
-rwxr-xr-x | bin/schroot-create.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index 2d4bc3cc..3c562565 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -177,6 +177,7 @@ sudo mv $CHROOT_TARGET $SCHROOT_BASE/"$TARGET" if [ -d $SCHROOT_BASE/"$TARGET"-"$rand" ] ; then sudo rm -rf --one-file-system $SCHROOT_BASE/"$TARGET"-"$rand" || ( echo "Warning: $SCHROOT_BASE/${TARGET}-$rand could not be fully removed." ; fuser -mv $SCHROOT_BASE/${TARGET}-$rand ; ls $SCHROOT_BASE/${TARGET}-$rand -la ) + # idea: ignore if 0 files are in there… fi # write the schroot config |