From 2f5f8f0e378b4696726f63ff9bf390fe99359994 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 27 Feb 2015 11:15:31 +0100 Subject: disable debugging again and dont use local variables with the same names as globals --- bin/schroot-create.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/schroot-create.sh b/bin/schroot-create.sh index d69b1a28..58e2925c 100755 --- a/bin/schroot-create.sh +++ b/bin/schroot-create.sh @@ -5,7 +5,7 @@ # Copyright 2014 Joachim Breitner # released under the GPLv=2 -DEBUG=true +DEBUG=false . /srv/jenkins/bin/common-functions.sh common_init "$@" @@ -55,8 +55,7 @@ fi # create script to add key for reproducible repo # add_repokey() { - TMPFILE=$1 - cat > $TMPFILE <<- EOF + cat > $1 <<- EOF echo "-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.12 (GNU/Linux) @@ -87,8 +86,6 @@ Mb0BawlXZui0MNUSnZtxHMxrjejdvZdqtskHl9srB1QThH0jasmUqbQPxCnxMbf1 =X8YA -----END PGP PUBLIC KEY BLOCK-----" | apt-key add - EOF - echo $TMPFILE - ls -la $TMPFILE } bootstrap() { @@ -107,10 +104,8 @@ bootstrap() { if [ "$1" == "reproducible" ] ; then TMPFILE=$(mktemp -u) - echo $TMPFILE add_repokey $CHROOT_TARGET/$TMPFILE - ls -la $CHROOT_TARGET/$TMPFILE - sudo chroot $CHROOT_TARGET bash -- $TMPFILE + sudo chroot $CHROOT_TARGET bash $TMPFILE rm $TMPFILE shift fi -- cgit v1.2.3-70-g09d2