PKGBUILD: fix and simplify major kernel version check after Jeremy's attempted fix

Ree the double quote is meant to go after the equation sign!
This commit is contained in:
Yaraslau Furman 2025-01-04 20:19:21 +02:00
parent 4dea0881c4
commit 3dd576acca

View file

@ -221,7 +221,7 @@ modify_defconfig() {
# Copies the kernel config
copy_defconfig() {
local "_cur_major_ver=$(zcat /proc/config.gz | grep Linux | grep -o '[0-9]*[0-9]\.[0-9]*[0-9]')"
local _cur_major_ver="$(uname -r | grep -o '[0-9]*[0-9]\.[0-9]*[0-9]')"
[[ "${_cur_major_ver}" != "${_kernel_major}" ]] &&
warning "Major version was updated, you should regen the defconfig"