whois: suppress missing file errors (thanks kivik)

This commit is contained in:
cinap_lenrek 2021-04-02 17:26:34 +02:00
parent afa5800b5b
commit c77b3ba143

View file

@ -1,6 +1,6 @@
#!/bin/rc
for(i in $*)
>[2] /dev/null for(i in $*)
grep '^'$i' ' /adm/whois ||
grep -i $i /adm/keys.who ||
grep -i $i /adm/netkeys.who ||