summaryrefslogtreecommitdiffstats
path: root/bin/schroot-create.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-09 18:53:22 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-09 18:53:22 +0200
commitd80aad38d413038f5fc788b5989d583883430405 (patch)
treef9b5b90c08ec3cd7368b3f0db0a75ec40f332cd4 /bin/schroot-create.sh
parent1659748550c4efc445c95e5b70b455ea4666d39d (diff)
downloadjenkins.debian.net-d80aad38d413038f5fc788b5989d583883430405.tar.xz
reproducible: explain
Diffstat (limited to 'bin/schroot-create.sh')
-rwxr-xr-xbin/schroot-create.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh
index e67cd28b..1027d67e 100755
--- a/bin/schroot-create.sh
+++ b/bin/schroot-create.sh
@@ -196,9 +196,11 @@ trap - INT TERM EXIT
rand=$RANDOM
if [ -d $SCHROOT_BASE/"$TARGET" ]
then
+ echo "$(date -u ) - $SCHROOT_BASE/$TARGET exists, moving it away to $SCHROOT_BASE/$TARGET-$rand"
sudo mv $SCHROOT_BASE/"$TARGET" $SCHROOT_BASE/"$TARGET"-"$rand"
fi
+echo "$(date -u ) - renaming $CHROOT_TARGET to $SCHROOT_BASE/$TARGET"
sudo mv $CHROOT_TARGET $SCHROOT_BASE/"$TARGET"
if [ -d $SCHROOT_BASE/"$TARGET"-"$rand" ] ; then