From 9b3ab8953d076fb810d8f13d090ec4ec485b94de Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 19 Jul 2015 13:38:54 -0300 Subject: Minor fixes at weather-query --- weather-query | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '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 -- cgit v1.2.3