summaryrefslogtreecommitdiff
path: root/nws
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2024-05-25 11:47:41 -0500
committerstkhan <personal@slickd.xyz>2024-05-25 11:47:41 -0500
commit72ffb159880af4e18052244748b1b81ac7a906cb (patch)
treeacac1cd23619766e9d966cb435c7856cca500831 /nws
parent70efff35421f84f46c7c02bbe9bd4cb91475afdd (diff)
make curl silent
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)