aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-12-06 16:29:59 +0100
committerJochen Topf <jochen@topf.org>2014-12-06 16:29:59 +0100
commitb9c51bd94702194f9263553cd5f1d4e0c7f13c50 (patch)
tree1cfa1de19097b5ed6a74e93e15faf41ff0647be8
parenta4b359e4e2599cccbddee1e1c007bc31e134b222 (diff)
parentb9e08c6ffbfe964de41ba30d593ebba579e743e8 (diff)
downloadtaginfo-b9c51bd94702194f9263553cd5f1d4e0c7f13c50.tar
taginfo-b9c51bd94702194f9263553cd5f1d4e0c7f13c50.tar.gz
Merge pull request #96 from kcwu/download-update
Prevent download db files if not updated yet
-rwxr-xr-xsources/update_all.sh2
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