From 85fee6476188b3b3a02101ce54e86773d47472e3 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Mon, 29 Apr 2024 14:19:52 -0700 Subject: [PATCH] suppress jq error --- load/01-basic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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