From 3922acc2a306b220bb248bf128433921ac680f49 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 30 Aug 2015 23:17:30 +0200 Subject: reproducible: more carefully use TMPDIR --- bin/reproducible_build.sh | 6 ++++-- 1 file 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 -- cgit v1.2.3-70-g09d2