summaryrefslogtreecommitdiff
path: root/vendor/getinfo
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/getinfo')
-rwxr-xr-xvendor/getinfo2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/getinfo b/vendor/getinfo
index 415ede98c..79da83620 100755
--- a/vendor/getinfo
+++ b/vendor/getinfo
@@ -11,7 +11,7 @@ if [ -z "$INFO" ] || [ ! -e "$INFO" ]; then
fi
getrawfield() {
- grep --max-count=1 "^<!ENTITY $1 \"" "${2:-$INFO}" | cut -d'"' -f 2
+ awk "/<!ENTITY $1/ {f=NR} f && NR-1==f { print; exit 0 }" RS='"' "${2:-$INFO}"
}
getfield() {