mirror of
https://github.com/dynup/kpatch
synced 2025-01-05 20:49:26 +00:00
remove quotes around for loop elements
Right now kpatch-build fails when more than one object file has changed because the quotes around the for loop arrays cause the for loop to execute only once for all elements in a single string. Remove the quotes around the for loop arrays so that the for loop is execute for each element. Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
496cb13085
commit
a6154ca400
@ -125,7 +125,7 @@ fi
|
|||||||
|
|
||||||
echo "Rebuilding changed objects"
|
echo "Rebuilding changed objects"
|
||||||
mkdir "$TEMPDIR/patched"
|
mkdir "$TEMPDIR/patched"
|
||||||
for i in "$(cat $TEMPDIR/changed_objs)"; do
|
for i in $(cat $TEMPDIR/changed_objs); do
|
||||||
rm -f "$i"
|
rm -f "$i"
|
||||||
KCFLAGS="-ffunction-sections -fdata-sections" make "$i" >> "$LOGFILE" 2>&1 || die
|
KCFLAGS="-ffunction-sections -fdata-sections" make "$i" >> "$LOGFILE" 2>&1 || die
|
||||||
"$STRIPCMD" "$i" >> "$LOGFILE" 2>&1 || die
|
"$STRIPCMD" "$i" >> "$LOGFILE" 2>&1 || die
|
||||||
@ -135,7 +135,7 @@ for i in "$(cat $TEMPDIR/changed_objs)"; do
|
|||||||
done
|
done
|
||||||
patch -R -p1 < "$PATCHFILE" >> "$LOGFILE" 2>&1
|
patch -R -p1 < "$PATCHFILE" >> "$LOGFILE" 2>&1
|
||||||
mkdir "$TEMPDIR/orig"
|
mkdir "$TEMPDIR/orig"
|
||||||
for i in "$(cat $TEMPDIR/changed_objs)"; do
|
for i in $(cat $TEMPDIR/changed_objs); do
|
||||||
rm -f "$i"
|
rm -f "$i"
|
||||||
KCFLAGS="-ffunction-sections -fdata-sections" make "$i" >> "$LOGFILE" 2>&1 || die
|
KCFLAGS="-ffunction-sections -fdata-sections" make "$i" >> "$LOGFILE" 2>&1 || die
|
||||||
"$STRIPCMD" -d "$i" >> "$LOGFILE" 2>&1 || die
|
"$STRIPCMD" -d "$i" >> "$LOGFILE" 2>&1 || die
|
||||||
|
Loading…
Reference in New Issue
Block a user