diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 3dda379..eff92fb 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -125,7 +125,7 @@ fi echo "Rebuilding changed objects" mkdir "$TEMPDIR/patched" -for i in "$(cat $TEMPDIR/changed_objs)"; do +for i in $(cat $TEMPDIR/changed_objs); do rm -f "$i" KCFLAGS="-ffunction-sections -fdata-sections" make "$i" >> "$LOGFILE" 2>&1 || die "$STRIPCMD" "$i" >> "$LOGFILE" 2>&1 || die @@ -135,7 +135,7 @@ for i in "$(cat $TEMPDIR/changed_objs)"; do done patch -R -p1 < "$PATCHFILE" >> "$LOGFILE" 2>&1 mkdir "$TEMPDIR/orig" -for i in "$(cat $TEMPDIR/changed_objs)"; do +for i in $(cat $TEMPDIR/changed_objs); do rm -f "$i" KCFLAGS="-ffunction-sections -fdata-sections" make "$i" >> "$LOGFILE" 2>&1 || die "$STRIPCMD" -d "$i" >> "$LOGFILE" 2>&1 || die