From cf51293ad55b4486d1a04b8174bb9ac4b29d882b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 7 Apr 2014 00:58:55 +0200 Subject: use less sudo --- bin/chroot-run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index 4193a5ca..8f4a4888 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -80,11 +80,11 @@ cleanup() { trap cleanup INT TERM EXIT run() { - sudo chroot $CHROOT_TARGET mkdir /testrun - cp -r $CURDIR $CHROOT_TARGET/testrun + mkdir $CHROOT_TARGET/tmp/testrun + cp -r $CURDIR/* $CHROOT_TARGET/tmp/testrun cat > $CHROOT_TARGET/tmp/chroot-testrun <<-EOF $SCRIPT_HEADER -cd /testrun +cd /tmp/testrun if [ -f debian/control ] ; then cat debian/control # install build-depends -- cgit v1.2.3-70-g09d2