Commit 554e6729 authored by Leo's avatar Leo
Browse files

match single and double strings on AL3 and AL4

parent da14eb2e
......@@ -89,13 +89,13 @@ unnecessary_return_1() {
pkgname_quoted() {
[ "$SKIP_PKGNAME_QUOTED" ] && return 0
[ "$SKIP_AL3" ] && return 0
scan '^pkgname="[^$]+"' "pkgname must not be quoted" 'AL3' 'TP'
scan "^pkgname=[\"'][^$]+[\"']" "pkgname must not be quoted" 'AL3' 'TP'
}
pkgver_quoted() {
[ "$SKIP_PKGVER_QUOTED" ] && return 0
[ "$SKIP_AL4" ] && return 0
scan '^pkgver="[^$]+"' "pkgver must not be quoted" 'AL4' 'TP'
scan "^pkgver=[\"'][^$]+[\"']" "pkgver must not be quoted" 'AL4' 'TP'
}
empty_variable() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment