Merge pull request #131 from jpoimboe/tmpdir-name

kpatch-build: put kpatch-build in the tmp dir name
This commit is contained in:
Seth Jennings 2014-04-15 17:17:21 -05:00
commit 3775692aa0

View File

@ -146,7 +146,7 @@ if [[ "$PATCHNAME" =~ \.patch ]] || [[ "$PATCHNAME" =~ \.diff ]]; then
PATCHNAME="${PATCHNAME%.*}"
fi
TEMPDIR="$(mktemp -d)" || die "mktemp failed"
TEMPDIR="$(mktemp -d /tmp/kpatch-build-XXXXXX)" || die "mktemp failed"
trap cleanup EXIT INT TERM