Commit 5eb98177 authored by Marc Coiffier's avatar Marc Coiffier
Browse files

Update the DNS lookup script to allow keys larger than 255 characters to be...

Update the DNS lookup script to allow keys larger than 255 characters to be split into multiple records (with additional metadata comes additional weight)
parent 8c4badd9
......@@ -26,10 +26,16 @@ case "$1" in
;;
domain-key)
domain="$2"
lookup TXT "$domain" | while read _ _ _ _ val; do
case "$val" in
"\"curly-id="*) val="${val#\"curly-id=}"; printf "%s\n" "${val%\"}";;
esac
done
lookup TXT "$domain" | sort | {
total=""
while read _ _ _ _ val; do
case "$val" in
"\"curly-id-"*"="*) val="${val#\"curly-id-*=}"
total+="${val%\"}"
;;
esac
done
printf "%s\n" "$total"
}
;;
esac
No preview for this file type
......@@ -147,7 +147,7 @@ repository, by importing its public key (this only needs to be done
once) :
~~~~{.terminal}
curly -e 'key import curly-std standard.curly-lang.org' -e 'key set curly-std follow-branches = stdlib hello'
curly -e 'key import curly-std standard.curly-lang.org'
~~~~~
......
......@@ -45,5 +45,5 @@ if [ -n "$bin_dir" ]; then
trace ln -fs "$install_dir/curly-$curly_version/curly" "$bin_dir/curly"
fi
if [ -n "$import_stdkeys" ]; then
"$bin_dir/curly" %'key import curly-std standard.curly-lang.org' %'key set curly-std follow-branches = stdlib hello'
"$bin_dir/curly" %'key import curly-std standard.curly-lang.org'
fi
Supports Markdown
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