From 72ffb159880af4e18052244748b1b81ac7a906cb Mon Sep 17 00:00:00 2001 From: stkhan Date: Sat, 25 May 2024 11:47:41 -0500 Subject: make curl silent --- nws | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nws b/nws index 45dac5f..5eaa617 100755 --- a/nws +++ b/nws @@ -3,7 +3,7 @@ # git.slickd.xyz/nws source $HOME/.config/nws/nws.conf -version=v0.0.4 +version=v0.0.5 colors() { NOCOLOR='\033[0m' @@ -134,7 +134,7 @@ get_forecast() { colors mkdir -p ~/.config/nws/cache/ get_location - curl $(curl https://api.weather.gov/points/$cords | jq -r .properties.forecast) >> ~/.cache/.weather_forecast + curl -s $(curl -s https://api.weather.gov/points/$cords | jq -r .properties.forecast) >> ~/.cache/.weather_forecast count=0 echo length=$(echo $(jq '.properties.periods | length' ~/.cache/.weather_forecast) -1 | bc) -- cgit v1.2.3