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:
Seth Jennings 2014-02-18 13:37:46 -06:00
parent 496cb13085
commit a6154ca400

View File

@ -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