From 6c139f4cd542f24bd7d59566c237f1d1a0e37ffd Mon Sep 17 00:00:00 2001 From: Jesus Alvarez Date: Fri, 19 Aug 2016 08:01:14 -0700 Subject: [PATCH] lib.sh: Ignore commented lines in kernel confs --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh b/lib.sh index 00bc8e7..8b6abcf 100644 --- a/lib.sh +++ b/lib.sh @@ -439,7 +439,7 @@ get_kernel_update_funcs() { if [[ ${kernel%.*} != ${kernel_name} ]]; then continue fi - updatefuncs=$(cat "${script_dir}/src/kernels/${kernel}" | grep -oh "update_.*_pkgbuilds") + updatefuncs=$(cat "${script_dir}/src/kernels/${kernel}" | grep -v "^.*#" | grep -oh "update_.*_pkgbuilds") for func in ${updatefuncs}; do update_funcs+=("${func}"); done done }