Created
February 21, 2019 11:53
-
-
Save mrvanes/68d3dcbc2e60a39037f399381566bd4b to your computer and use it in GitHub Desktop.
download_maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL='http://download.osmand.net/download?standard=yes&file=' | |
for MAP in *.obf; do | |
MAPFILE=${MAP#./} | |
MAPNAME=${MAPFILE%.obf} | |
echo $MAPNAME | |
DLMAP=${MAPNAME}_2.obf.zip | |
DLURL=${URL}${DLMAP} | |
wget $DLURL -O $DLMAP | |
unzip $DLMAP | |
mv ${MAPNAME}_2.obf ${MAPNAME}.obf | |
rm $DLMAP | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment