From 0150806fbf0cc64e60984f8a99aa45ca734e0735 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 29 Jan 2019 17:01:45 +0100 Subject: Protect spaces in file names --- makecolumns.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/makecolumns.sh b/makecolumns.sh index ee31f82..edd965c 100755 --- a/makecolumns.sh +++ b/makecolumns.sh @@ -260,7 +260,7 @@ handle_format_version_3() { # If street names come in an extra file, extract # street names first streets="$1"/[Dd][Aa][Tt]/[Ss][Tt][Rr][Aa][Ss][Ss][Ee][Nn].[Dd][Aa][Tt] - [ -f ${streets} ] && do_processfile_version_3 ${streets} "street name" 99_Strassenname convert_zeros + [ -f "${streets}" ] && do_processfile_version_3 "${streets}" "street name" 99_Strassenname convert_zeros # extract street names if 07_unknown contains street indexes # instead of street names @@ -281,8 +281,8 @@ handle_format_version_3() { fi karto="$1"/[Dd][Aa][Tt]/[Kk][Aa][Rr][Tt][Oo].[Dd][Aa][Tt] - if [ -f ${karto} ]; then - do_processfile_version_3 ${karto} "geo coordinates" 90_Geokoordinaten_hnr_raw + if [ -f "${karto}" ]; then + do_processfile_version_3 "${karto}" "geo coordinates" 90_Geokoordinaten_hnr_raw printf "Looking up geo coordinates for each phonebook entry ... " tr '\0' '\n' < 90_Geokoordinaten_hnr_raw | tr ';' '\t' | cut -f "1,2,3,4,6,7" | tr '\n' '\0' > 90_Geokoordinaten_hnr -- cgit v1.2.3