]> git.proxmox.com Git - proxmox-acme.git/blobdiff - src/test/check-missing-functions
check-missing-functions: avoid some more false-positives with negative-lookbehing
[proxmox-acme.git] / src / test / check-missing-functions
index c8a2b3dff0ed8256fa25cf4a6e4604d967cdd4fe..cb819fc2d11179691090676cd123233fbf55f37c 100755 (executable)
@@ -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: *#"