From 714b3bd408ca54b4cca9e1cc86ec8bbbc884966c Mon Sep 17 00:00:00 2001 From: randomuser Date: Tue, 11 May 2021 14:52:01 -0500 Subject: [PATCH] changes to nws --- scripts/nws | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/nws b/scripts/nws index 96a6f54..e2e9531 100755 --- a/scripts/nws +++ b/scripts/nws @@ -55,7 +55,7 @@ weather () { textmessage "ZFP" } textmessage () { - curl --fail "https://forecast.weather.gov/product.php?site=NWS&issuedby=$(kstrip ${NWS_ZONE})&product=${1}&format=TXT&version=1" | \ + curl --silent --fail "https://forecast.weather.gov/product.php?site=NWS&issuedby=$(kstrip ${NWS_ZONE})&product=${1}&format=TXT&version=1" | \ sed -n '//,/<\/pre>/p' | \ grep -v "a href" | \ grep -v '' | \ @@ -84,8 +84,6 @@ case $1 in [ $# -eq 2 ] && mosaid $2 || \ err "two args required" ;; - "z"*) - ;; "s"*) [ $# -eq 2 ] && setzone $2 || \ err "two args required"