Fix comment filtering.

master
Icedream 2023-04-11 03:28:06 +02:00
parent b3804ed445
commit 3661e406ca
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function is_readable_file {
if is_readable_file "$pkgbuild_path" &&
! is_readable_file "$pkgbuild_copy_path";then
eval $(grep -Pazo '[^[:print:]][[:blank:]]*_?(pkg.*|name)=(\((.|\n)*?\)|[^#]*?(?= *#|\x0a))' ./PKGBUILD | grep -Eva '\$\(|`|pkgdesc')
eval $(grep -Pazo '[^[:print:]][[:blank:]]*_?(pkg.*|name)=(\((.|\n)*?\)|.*?(?=\x0a))' ./PKGBUILD | sed 's, #.*$,,' | grep -Eva '\$\(|`|pkgdesc')
if [[ -n "${pkgname:-''}" ]];then
global_conf_path="${GLOBAL_CONF_DIR_PATH}/${pkgname}"
user_conf_path="${USER_CONF_DIR_PATH}/${pkgname}"