diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-07-19 13:38:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-07-19 13:38:54 -0300 |
commit | 9b3ab8953d076fb810d8f13d090ec4ec485b94de (patch) | |
tree | 41292e6259895bff57fae2eb2818a115a3429cb5 /weather-query | |
parent | ae13243c17cc6f22b81c9e5ea1b337ebcdbb57b6 (diff) | |
download | scripts-9b3ab8953d076fb810d8f13d090ec4ec485b94de.tar.gz scripts-9b3ab8953d076fb810d8f13d090ec4ec485b94de.tar.bz2 |
Minor fixes at weather-query
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 |