summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@debian.org>2017-09-08 10:54:15 +0200
committerHolger Levsen <holger@layer-acht.org>2017-09-09 14:26:20 +0200
commit4b9909555c6be1cbcb17c109d94d37ac5e0dbc28 (patch)
tree1b050e9c33c2e3c99d3dd9bfa870730bad268695 /bin
parentab0508b05f65b0e254e1e9b669c11566e29ff830 (diff)
downloadjenkins.debian.net-4b9909555c6be1cbcb17c109d94d37ac5e0dbc28.tar.xz
reproducible debian: _build.sh: avoid removing the temporary directory twice
the cleanup function is trapped at the exit, so calling `exit` will already cleanup stuff. Signed-off-by: Mattia Rizzolo <mattia@debian.org> Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 96e876e5..92641635 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -66,9 +66,6 @@ handle_race_condition() {
SAVE_ARTIFACTS=0
if [ ! -z "$NOTIFY" ] ; then NOTIFY="failure" ; fi
fi
- # cleanup
- cd
- rm -r $TMPDIR || true
exit 0
}