From 686cc4ff520823498534597a20b8d99ad8e52e37 Mon Sep 17 00:00:00 2001 From: Josh Poimboeuf Date: Tue, 3 Nov 2015 13:47:31 -0600 Subject: [PATCH] kpatch-build: put log file in $CACHEDIR Otherwise it gets removed along with TEMPDIR if '--debug' isn't set. --- kpatch-build/kpatch-build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index f983819..5ad09ed 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -44,7 +44,7 @@ OBJDIR="$CACHEDIR/obj" TMPSRCDIR="$CACHEDIR/tempsrc" VERSIONFILE="$CACHEDIR/version" TEMPDIR="$CACHEDIR/tmp" -LOGFILE="$TEMPDIR/build.log" +LOGFILE="$CACHEDIR/build.log" APPLIEDPATCHFILE="kpatch.patch" DEBUG=0 SKIPGCCCHECK=0 @@ -275,6 +275,7 @@ done # ensure cachedir and tempdir are setup properly and cleaned mkdir -p "$TEMPDIR" || die "Couldn't create $TEMPDIR" rm -rf "$TEMPDIR"/* +rm -f "$LOGFILE" trap cleanup EXIT INT TERM