From: martin f. krafft Date: Fri, 15 May 2009 09:11:39 +0000 (+0200) Subject: remove tmpdir from /tmp, not / X-Git-Url: https://git.madduck.net/code/mbuild.git/commitdiff_plain/838d4e8c2f212da3954005330e76588bd3032a21?ds=inline remove tmpdir from /tmp, not / --- diff --git a/sbuild-wrapper.sh b/sbuild-wrapper.sh index 731e1bd..3cb9013 100755 --- a/sbuild-wrapper.sh +++ b/sbuild-wrapper.sh @@ -10,7 +10,7 @@ set -eu ME="${0##*/}" BUILDDIR="$(mktemp -dt $ME.XXXXXXXX)" -trap "cd / && rm -R '$BUILDDIR'" 0 +trap "cd /tmp && rm -r '$BUILDDIR'" 0 BUNDLE_DIR="${TMPDIR:-/tmp}" TARGET_DIR="$PWD"