check-missing-functions: avoid some more false-positives with negative-lookbehing

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-04-26 10:39:19 +02:00
parent 9ba73e66c0
commit cdeee69003

View File

@ -10,5 +10,5 @@ PRESENT=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
../acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
grep -P '\b_[a-zA-Z0-9_-]+ ' ../acme.sh/dnsapi/dns_*sh | \
grep -P '(?<!["$])\b_[a-zA-Z0-9_-]+ ' ../acme.sh/dnsapi/dns_*sh | \
grep -Ev "$PRESENT|$LOCAL|\b_[a-zA-Z0-9_-]+=|^../acme.sh/dnsapi/.*sh: *#"