Skip to content
Snippets Groups Projects
Commit 5e909271 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Remove bashism in gen-root-hints.sh script

parent 8ca3e35a
Branches
Tags
1 merge request!101Remove bashism in gen-root-hints.sh script
......@@ -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
......
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