mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
11 lines
216 B
Bash
11 lines
216 B
Bash
pubs=($pubs)
|
|
hosts=($hosts)
|
|
|
|
lines="''\n"
|
|
for ((i = 0; i < ${#pubs[*]}; i++)); do
|
|
addr=$($cjdns/bin/publictoip6 ${pubs[i]})
|
|
lines="${lines}$addr ${hosts[i]}\n"
|
|
done
|
|
lines="${lines}''"
|
|
|
|
echo -ne $lines > $out
|