Skip to content
Snippets Groups Projects
Commit 2379c35b authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Ondřej Surý
Browse files

Use printf instead of echo in scripts/gen-root-hints.sh to avoid echo with parameters.

parent 110359cc
Branches
Tags
1 merge request!100allow generating most cdefs for lua
......@@ -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
[ "$(printf "%s" "$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