lib.sh: Ignore commented lines in kernel confs

extramodules
Jesus Alvarez 9 years ago
parent b02f41be84
commit 6c139f4cd5
  1. 2
      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
}

Loading…
Cancel
Save