From 00adbf98e9543831e862368d227c6b2fc79554c2 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 26 Sep 2016 15:29:17 -0400 Subject: [PATCH] minor updates. --- modules/weather/weather.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/weather/weather.sh b/modules/weather/weather.sh index 9fd1156..fc028a9 100755 --- a/modules/weather/weather.sh +++ b/modules/weather/weather.sh @@ -4,6 +4,7 @@ if [ ${#3} -ge 5 ]; then weatherInfo="$(curl -s "http://mobile.wunderground.com/cgi-bin/findweather/getForecast?brand=mobile&query=$3")" weatherTemperature="$(echo "$weatherInfo" | grep -A 2 'Temperature' | tr -cd '[:digit:]-.')" weatherConditions="$(echo "$weatherInfo" | grep -A 1 'Conditions' | tail -n1 | sed 's/<[^>]*>//g')" +weatherConditions="${weatherConditions/Rain/wetter than a teenage girl at a boy band concert}" weatherInfo="Currently your weather is $weatherConditions and $weatherTemperature degrees fahrenheit." fi