diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-08-30 23:17:30 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-30 23:17:30 +0200 |
commit | 3922acc2a306b220bb248bf128433921ac680f49 (patch) | |
tree | 497a30415abd5caecfc879860e021512d9bdcb26 | |
parent | c03f449cd4b2bae555116e89b766bb8739382db4 (diff) | |
download | jenkins.debian.net-3922acc2a306b220bb248bf128433921ac680f49.tar.xz |
reproducible: more carefully use TMPDIR
-rwxr-xr-x | bin/reproducible_build.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index da9373d1..9d808ad1 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -573,8 +573,10 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then MODE="$1" SRCPACKAGE="$2" SUITE="$3" - SAVE_ARTIFACTS=0 - TMPDIR="$4" ; mkdir $TMPDIR ; cd $TMPDIR + SAVE_ARTIFACTS="0" + TMPDIR="$4" + [ -d $TMPDIR ] || mkdir -p $TMPDIR + cd $TMPDIR get_source_package mkdir b$MODE if [ "$MODE" = "1" ] ; then |