fix gip
parent
43ab19edc2
commit
f4faa105a3
|
@ -58,7 +58,7 @@ rsynchg() { rsync --help | grep "\-$1"; }
|
||||||
|
|
||||||
|
|
||||||
gip () {
|
gip () {
|
||||||
if which jqx &> /dev/null; then
|
if which jq &> /dev/null; then
|
||||||
curl -s "https://dns.google/resolve?name=$1" | jq -r '.Answer[] | .data'
|
curl -s "https://dns.google/resolve?name=$1" | jq -r '.Answer[] | .data'
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue