From 6ac95ac3002444cbc0d7718b77b2176816124c54 Mon Sep 17 00:00:00 2001 From: Stephan Hohe Date: Wed, 11 Jun 2025 21:54:06 +0200 Subject: [PATCH 1/2] Exit build scripts on errors --- overpass-api-httpd/build.sh | 1 + overpass-api-server/build.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/overpass-api-httpd/build.sh b/overpass-api-httpd/build.sh index 34b8e66..fa24ce7 100755 --- a/overpass-api-httpd/build.sh +++ b/overpass-api-httpd/build.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -e wget https://dev.overpass-api.de/releases/osm-3s_latest.tar.gz gunzip Date: Wed, 11 Jun 2025 23:13:01 +0200 Subject: [PATCH 2/2] Ignore errors when calling `strip` They are given shell scripts in their parameter lists and therefore it's expected that they return errors. --- overpass-api-httpd/build.sh | 4 ++-- overpass-api-server/build.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/overpass-api-httpd/build.sh b/overpass-api-httpd/build.sh index fa24ce7..5e15ea4 100755 --- a/overpass-api-httpd/build.sh +++ b/overpass-api-httpd/build.sh @@ -16,7 +16,7 @@ popd pushd overpass mkdir -p db -strip bin/* -strip cgi-bin/* +strip bin/* || true +strip cgi-bin/* || true popd diff --git a/overpass-api-server/build.sh b/overpass-api-server/build.sh index b741185..bd847ad 100755 --- a/overpass-api-server/build.sh +++ b/overpass-api-server/build.sh @@ -16,7 +16,7 @@ popd pushd overpass mkdir -p db -strip bin/* -strip cgi-bin/* +strip bin/* || true +strip cgi-bin/* || true popd