summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-23 23:23:08 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-23 23:23:08 +0200
commitb883a03b574d38fbd675bff2b4cd543dd678ebf4 (patch)
tree0e5692cbe795dc482c3d073487ae162e1000bb52 /bin
parent2ef22a0e1d1ac1845a717da0952ad2b2d3f98c92 (diff)
downloadjenkins.debian.net-b883a03b574d38fbd675bff2b4cd543dd678ebf4.tar.xz
reproducible: dont remove the directory while we're in it
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index f1a25d09..6e1b922c 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -50,6 +50,7 @@ handle_race_condition() {
if [ ! -z "$NOTIFY" ] ; then NOTIFY="failure" ; fi
fi
# cleanup
+ cd
rm -r $TMPDIR || true
if ! $BAD_LOCKFILE ; then rm -f $LOCKFILE ; fi
exec /srv/jenkins/bin/abort.sh