summaryrefslogtreecommitdiff
path: root/nws
diff options
context:
space:
mode:
Diffstat (limited to 'nws')
-rwxr-xr-xnws4
1 files 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)