diff --git a/README.md b/README.md index 3822a26..7b0916c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # osmus/tileservice -Central repo for the OSM US vector tile service +Central repository for the OSM US vector tile service diff --git a/renderer/_example.sh b/renderer/_example.sh index e0c4751..d54e224 100644 --- a/renderer/_example.sh +++ b/renderer/_example.sh @@ -19,7 +19,7 @@ else touch "${LOCKFILE}" # Ensure the lock file is removed when we exit and when we receive signals - trap "rm -f ${LOCKFILE}; trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT + trap "rm -f '${LOCKFILE}'; trap - SIGTERM && kill -- -'$$'" SIGINT SIGTERM EXIT fi # The local path to the tileservice repo diff --git a/renderer/render.sh b/renderer/render.sh index 0ddd662..55e5c39 100755 --- a/renderer/render.sh +++ b/renderer/render.sh @@ -3,4 +3,4 @@ # Get the directory of the current script DIR="$(dirname "$0")" -"$DIR/render_seashells.sh" $1 \ No newline at end of file +"$DIR/render_seashells.sh" "$1" \ No newline at end of file diff --git a/renderer/render_seashells.sh b/renderer/render_seashells.sh index 0e8b3be..054b5d9 100755 --- a/renderer/render_seashells.sh +++ b/renderer/render_seashells.sh @@ -23,7 +23,7 @@ tail -f "$LOG_FILE" | nc seashells.io 1337 > /tmp/seashells_render & sleep 10 OSM_PLANET_SIZE=$(stat -c%s "$WORKING_DIR/data/sources/planet.osm.pbf") # Print the size with comma separators -OSM_PLANET_SIZE=$(printf "%'d" $OSM_PLANET_SIZE) +OSM_PLANET_SIZE=$(printf "%'d" "$OSM_PLANET_SIZE") RSS_FILE="$WORKING_DIR/rss.xml" PLANET="$WORKING_DIR/data/planet.pmtiles" @@ -61,7 +61,7 @@ run() { PMTILES_PLANET_SIZE=$(stat -c%s "$PLANET") # Print the size with comma separators - PMTILES_PLANET_SIZE=$(printf "%'d" $PMTILES_PLANET_SIZE) + PMTILES_PLANET_SIZE=$(printf "%'d" "$PMTILES_PLANET_SIZE") "$DIR/rss_update.sh" "$RSS_FILE" "Build Complete" "Tiles are up to date as of ${TIMESTAMP}Z. Render took ${HOURS} ${HOUR_TEXT} and ${MINUTES} ${MINUTE_TEXT}. The planet PMTiles file is ${PMTILES_PLANET_SIZE} bytes." else