diff options
| author | stkhan <personal@slickd.xyz> | 2024-05-25 11:47:41 -0500 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2024-05-25 11:47:41 -0500 |
| commit | 72ffb159880af4e18052244748b1b81ac7a906cb (patch) | |
| tree | acac1cd23619766e9d966cb435c7856cca500831 | |
| parent | 70efff35421f84f46c7c02bbe9bd4cb91475afdd (diff) | |
make curl silent
| -rwxr-xr-x | nws | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |