diff options
author | Jochen Topf <jochen@topf.org> | 2014-12-06 16:29:59 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-12-06 16:29:59 +0100 |
commit | b9c51bd94702194f9263553cd5f1d4e0c7f13c50 (patch) | |
tree | 1cfa1de19097b5ed6a74e93e15faf41ff0647be8 /sources | |
parent | a4b359e4e2599cccbddee1e1c007bc31e134b222 (diff) | |
parent | b9e08c6ffbfe964de41ba30d593ebba579e743e8 (diff) | |
download | taginfo-b9c51bd94702194f9263553cd5f1d4e0c7f13c50.tar taginfo-b9c51bd94702194f9263553cd5f1d4e0c7f13c50.tar.gz |
Merge pull request #96 from kcwu/download-update
Prevent download db files if not updated yet
Diffstat (limited to 'sources')
-rwxr-xr-x | sources/update_all.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/update_all.sh b/sources/update_all.sh index dfe31c6..b511ecd 100755 --- a/sources/update_all.sh +++ b/sources/update_all.sh @@ -50,7 +50,7 @@ for source in $SOURCES_DOWNLOAD; do echo "=====================================" echo "Downloading $source..." mkdir -p $DIR/$source - curl --silent --fail --output $DIR/download/taginfo-$source.db.bz2 http://taginfo.openstreetmap.org/download/taginfo-$source.db.bz2 + curl --silent --fail --output $DIR/download/taginfo-$source.db.bz2 --time-cond $DIR/download/taginfo-$source.db.bz2 http://taginfo.openstreetmap.org/download/taginfo-$source.db.bz2 bzcat $DIR/download/taginfo-$source.db.bz2 >$DIR/$source/taginfo-$source.db echo "Done." done |