From 7b60dd772ec3f83c05ac84d1cd098a29a9d246a3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 3 Mar 2017 19:49:09 +0100 Subject: reproducible lede+openwrt: reenable node cleanup after build Signed-off-by: Holger Levsen --- bin/reproducible_lede_common.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/reproducible_lede_common.sh b/bin/reproducible_lede_common.sh index c4143931..3ed93dc9 100644 --- a/bin/reproducible_lede_common.sh +++ b/bin/reproducible_lede_common.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014-2016 Holger Levsen +# Copyright 2014-2017 Holger Levsen # © 2015 Reiner Herrmann # 2016 Alexander Couzens # released under the GPLv=2 @@ -20,13 +20,13 @@ node_debug() { node_cleanup_tmpdirs() { export TMPDIR=$1 echo "Not cleaning up to make lynxis happy. Please notify lynxis he must clean up the tempdir $1" -# cd -# # (very simple) check we are deleting the right stuff -# if [ "${TMPDIR:0:26}" != "/srv/reproducible-results/" ] || [ ${#TMPDIR} -le 26 ] ; then -# echo "Something very strange with \$TMPDIR=$TMPDIR exiting instead of doing cleanup." -# exit 1 -# fi -# rm -rf $TMPDIR + cd + # (very simple) check we are deleting the right stuff + if [ "${TMPDIR:0:26}" != "/srv/reproducible-results/" ] || [ ${#TMPDIR} -le 26 ] ; then + echo "Something very strange with \$TMPDIR=$TMPDIR exiting instead of doing cleanup." + exit 1 + fi + rm -rf $TMPDIR } node_create_tmpdirs() { -- cgit v1.2.3-70-g09d2