From fa3087f7a1705a115bc65201ef9f86b93aae812e Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Sat, 12 Oct 2019 21:24:23 -0700 Subject: [PATCH] Exit pipeline early if the tiles are already generated --- pipeline.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pipeline.sh b/pipeline.sh index a7a4e5d..eff34f5 100755 --- a/pipeline.sh +++ b/pipeline.sh @@ -1,3 +1,8 @@ +if [ -f "tiles/tiles.mbtiles" ]; then + echo "Tiles already generated." + exit 0; +fi + mkdir -p tiles time tl copy -z 10 -Z 15 \ -b "-123.2762 45.1926 -122.1817 45.8201" \