From 5e909271769a3b571061671749bf6c3d6055386b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Mon, 19 Dec 2016 09:24:09 +0100 Subject: [PATCH] Remove bashism in gen-root-hints.sh script --- scripts/gen-root-hints.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen-root-hints.sh b/scripts/gen-root-hints.sh index 767efcebd..5ce009748 100755 --- a/scripts/gen-root-hints.sh +++ b/scripts/gen-root-hints.sh @@ -15,7 +15,7 @@ for atype in A AAAA; do for n in a b c d e f g h i j k l m; do ip="$(kdig "$atype" "$n.root-servers.net." +dnssec +short)" ip_hex="$("$(dirname "$0")"/inet_pton.py "$ip")" - [ "$(echo -n "$ip_hex" | wc -c)" == "$alen" ] || exit 1 + [ "$(echo -n "$ip_hex" | wc -c)" = "$alen" ] || exit 1 echo "#define HINT_${n}_${atype} \"$ip_hex\"" done done -- 2.47.2