diff options
Diffstat (limited to 'nws')
| -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) |