summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-08-30 23:17:30 +0200
committerHolger Levsen <holger@layer-acht.org>2015-08-30 23:17:30 +0200
commit3922acc2a306b220bb248bf128433921ac680f49 (patch)
tree497a30415abd5caecfc879860e021512d9bdcb26 /bin/reproducible_build.sh
parentc03f449cd4b2bae555116e89b766bb8739382db4 (diff)
downloadjenkins.debian.net-3922acc2a306b220bb248bf128433921ac680f49.tar.xz
reproducible: more carefully use TMPDIR
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh6
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