Fix comment filtering.
parent
b3804ed445
commit
3661e406ca
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue