mirror of
https://github.com/dynup/kpatch
synced 2024-12-14 17:34:34 +00:00
use "grep -e" instead of multiple grep invocations
This commit is contained in:
parent
c21550ef63
commit
e904701b9d
@ -199,7 +199,7 @@ make "-j$CPUS" vmlinux "O=$OBJDIR" 2>&1 | tee -a "$TEMPDIR/patched_build.log" >>
|
||||
[[ "${PIPESTATUS[0]}" -eq 0 ]] || die
|
||||
|
||||
echo "Detecting changed objects"
|
||||
grep CC "$TEMPDIR/patched_build.log" | grep -v init/version.o | grep -v scripts/mod/devicetable-offsets.s | grep -v scripts/mod/file2alias.o | awk '{print $2}' > "$TEMPDIR/changed_objs"
|
||||
grep CC "$TEMPDIR/patched_build.log" | grep -v -e init/version.o -e scripts/mod/devicetable-offsets.s -e scripts/mod/file2alias.o | awk '{print $2}' > "$TEMPDIR/changed_objs"
|
||||
[[ ! -s "$TEMPDIR/changed_objs" ]] && die "no changed objects were detected"
|
||||
|
||||
echo "Rebuilding changed objects"
|
||||
|
Loading…
Reference in New Issue
Block a user