Skip to content

Commit ebaa5d3

Browse files
committed
Merge pull request #255 from jpoimboe/kpatch-build-debug
kpatch-build: DEBUG for create-diff-object
2 parents ebdd5d9 + 3e4aa95 commit ebaa5d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kpatch-build/kpatch-build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ for i in $FILES; do
385385
KOBJFILE="$(readlink -f $KOBJFILE)"
386386
fi
387387
cd $TEMPDIR
388-
"$TOOLSDIR"/create-diff-object "orig/$i" "patched/$i" "$KOBJFILE" "output/$i" 2>&1 |tee -a "$LOGFILE"
388+
debugopt=
389+
[[ $DEBUG -eq 1 ]] && debugopt=-d
390+
"$TOOLSDIR"/create-diff-object $debugopt "orig/$i" "patched/$i" "$KOBJFILE" "output/$i" 2>&1 |tee -a "$LOGFILE"
389391
[[ "${PIPESTATUS[0]}" -eq 0 ]] || die
390392
done
391393

0 commit comments

Comments
 (0)