diff options
Diffstat (limited to 'weather-query')
-rwxr-xr-x | weather-query | 4 |
1 files changed, 2 insertions, 2 deletions
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 |