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:
parent
4dea0881c4
commit
3dd576acca
1 changed files with 1 additions and 1 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue