From 3dd576accac86a02c155c443455781e9402b56b1 Mon Sep 17 00:00:00 2001 From: Yaraslau Furman Date: Sat, 4 Jan 2025 20:19:21 +0200 Subject: [PATCH] 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! --- PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index fbeb080..4fad658 100644 --- a/PKGBUILD +++ b/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"