diff --git a/load/01-basic b/load/01-basic index fdccf9c..a8cbb69 100644 --- a/load/01-basic +++ b/load/01-basic @@ -59,7 +59,7 @@ rsynchg() { rsync --help | grep "\-$1"; } gip () { if which jq &> /dev/null; then - curl -s "https://dns.google/resolve?name=$1" | jq -r '.Answer[] | .data' | tail -n 1 + curl -s "https://dns.google/resolve?name=$1" | jq -r '.Answer[] | .data' 2>/dev/null | tail -n 1 return 0 else echo install jq to use this function