Introduction
Introduction Statistics Contact Development Disclaimer Help
tFix Fog alert - nws-forecast-mailer - fetch and deliver the NWS 48-hour foreca…
git clone git://src.adamsgaard.dk/nws-forecast-mailer
Log
Files
Refs
README
LICENSE
---
commit 7cc083bbd0eba702c73bdb2dd3e9ef626abbd6e4
parent eb3057bbaf957254ff489bfd8c13094dcdc86f03
Author: Anders Damsgaard <[email protected]>
Date: Wed, 10 Jan 2018 11:58:57 -0500
Fix Fog alert
Diffstat:
M forecast_alert.sh | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/forecast_alert.sh b/forecast_alert.sh
t@@ -13,8 +13,7 @@ out=$(fetch $latitude $longitude)
# any fog in the next 48 hours?
keyword="Fog"
-if echo "$out" | grep "^$keyword" | grep '[0-9]' >/dev/null; then
-
+if echo "$out" | grep "^$keyword" | grep '[A-Z]' >/dev/null; then
message=$(cat <<-END
Next 24 hours:
t@@ -38,5 +37,3 @@ END
else
echo "No $keyword predicted within the next 48 hours"
fi
-
-
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.