We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 129fb4a + 5737028 commit f4b5edeCopy full SHA for f4b5ede
kpatch-build/kpatch-build
@@ -119,8 +119,8 @@ find_dirs() {
119
120
gcc_version_check() {
121
# ensure gcc version matches that used to build the kernel
122
- local gccver=$(gcc --version |head -n1 |cut -d' ' -f2-)
123
- local kgccver=$(readelf -p .comment $VMLINUX |grep GCC: | tr -s ' ' | cut -d ' ' -f5-)
+ local gccver=$(gcc --version | head -n1 | cut -d' ' -f2- | sed 's/GNU/GCC/g')
+ local kgccver=$(readelf -p .comment $VMLINUX | grep GCC: | tr -s ' ' | cut -d ' ' -f5- | sed 's/GNU/GCC/g')
124
if [[ "$gccver" != "$kgccver" ]]; then
125
warn "gcc/kernel version mismatch"
126
echo "gcc version: $gccver"
0 commit comments