summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-15 09:19:23 +0200
committerErich Eckner <git@eckner.net>2018-05-15 09:19:23 +0200
commit00f98f5ff75dcde05b75422f45444463d18bddfb (patch)
tree61fc7fb6c14cd892c7e5fc20849c95acdd0b4fda
parente5708b085579efbe57d7c6c412a72a2b64b5349c (diff)
downloadosm-to-garmin-00f98f5ff75dcde05b75422f45444463d18bddfb.tar.xz
convert: actually only use the configured area, not all previous ones, too
-rwxr-xr-xconvert6
1 files changed, 4 insertions, 2 deletions
diff --git a/convert b/convert
index fda3a07..6a5e39a 100755
--- a/convert
+++ b/convert
@@ -142,7 +142,9 @@ then
--style-file=mkgmap-style-sheets/styles \
--style="generic new" \
"mkgmap-style-sheets/typ/osm generic new/2000.typ" \
- *-latest_dir/6324????.osm.pbf
+ $(
+ printf '%s-latest_dir/6324????.osm.pbf\n' "${countries[@]}"
+ )
rm -f 6324????.img
fi
@@ -158,7 +160,7 @@ max_size=$((4*1024*1024*1024))
'Deine Karte auf '"$(hostname)"' ist fertig!'
if [ ${size} -gt ${max_size} ]; then
printf '%s\n' \
- 'Die ist aber größer als 4GB.'
+ 'Die ist aber groeszer als 4GB.'
fi
} | \
sendmailadvanced -t