This commit is contained in:
foo
2014-02-01 13:20:18 +00:00
parent 1e2540761d
commit 2dbc4c5468
2 changed files with 17 additions and 8 deletions

View File

@ -35,7 +35,7 @@
CACHE=/tmp/river_level_.dat
checkdata () {
if test `find "$CACHE" -mtime +1`
if [ ! -f $CACHE ] || test `find "$CACHE" -mtime +1`
then
curl -o $CACHE -Ss $urlbase || exit 1
fi