add dig missing warning

This commit is contained in:
ville rantanen
2017-04-29 09:46:25 +03:00
parent 1507af6724
commit 98ca5781ac

View File

@@ -12,6 +12,11 @@ for (( i=1; i<=$#; i++ )); do
[[ "${!i}" = "-n" ]] && { NAME=1; continue; }
done
which dig &> /dev/null || {
echo Install apt dnsutils >&2
exit 1
}
IP=$( dig +short myip.opendns.com @resolver1.opendns.com )