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"