summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/chroot-run.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh
index 8f4a4888..03ac4203 100755
--- a/bin/chroot-run.sh
+++ b/bin/chroot-run.sh
@@ -80,8 +80,8 @@ cleanup() {
trap cleanup INT TERM EXIT
run() {
- mkdir $CHROOT_TARGET/tmp/testrun
- cp -r $CURDIR/* $CHROOT_TARGET/tmp/testrun
+ cp -r $CURDIR $CHROOT_TARGET/tmp/
+ mv $CHROOT_TARGET/tmp/$(basename $CURDIR) $CHROOT_TARGET/tmp/testrun
cat > $CHROOT_TARGET/tmp/chroot-testrun <<-EOF
$SCRIPT_HEADER
cd /tmp/testrun