From 0ebae8e2cf909d4a3242b2aee932a8b476137f6a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 18 Sep 2015 13:10:10 +0200 Subject: fixup a8882f2d: reproducible: be more verbose when trying to replace schroots --- bin/schroot-create.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index 03dd2d77..0f666ab8 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -218,8 +218,8 @@ then echo "$(date -u ) - $SCHROOT_BASE/$TARGET exists, moving it away to $SCHROOT_BASE/$TARGET-$rand" set +e sudo mv $SCHROOT_BASE/"$TARGET" $SCHROOT_BASE/"$TARGET"-"$rand" - set -e RESULT=$? + set -e if [ $RESULT -ne 0 ] ; then echo ls -R $SCHROOT_BASE/"$TARGET" @@ -232,8 +232,8 @@ cleanup_schroot_sessions echo "$(date -u ) - renaming $CHROOT_TARGET to $SCHROOT_BASE/$TARGET" set +e sudo mv $CHROOT_TARGET $SCHROOT_BASE/"$TARGET" -set -e RESULT=$? +set -e if [ $RESULT -ne 0 ] ; then echo ls -R $SCHROOT_TARGET -- cgit v1.2.3-70-g09d2