From: Silvio Rhatto Date: Sun, 19 Jul 2015 16:38:54 +0000 (-0300) Subject: Minor fixes at weather-query X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=9b3ab8953d076fb810d8f13d090ec4ec485b94de;p=scripts.git Minor fixes at weather-query --- diff --git a/weather-query b/weather-query index e925342..f834415 100755 --- a/weather-query +++ b/weather-query @@ -19,13 +19,13 @@ function weather_query { # Save the previous forecast cp $CACHE/weather.cur $CACHE/weather.prev - weather $* > $CACHE/weather.cur + weather $* > $CACHE/weather.cur 2> /dev/null # Test if current forecast is empty, meaning # that we're probably ofline. In that case # we provide the previous output. if [ ! -s "$CACHE/weather.cur" ]; then - cp $CACHE/weather.pre $CACHE/weather.cur + cp $CACHE/weather.prev $CACHE/weather.cur fi # Display output