Skip to content

Commit 757a220

Browse files
zstadlerwiktorn
authored andcommitted
Handle empty OVERPASS_PLANET_PREPROCESS
An empty `OVERPASS_PLANET_PREPROCESS` should be treated the same as if it was not set. Setting an empty variable can occur with the following `docker-compose.yml` definition: ```yml environment: OVERPASS_PLANET_PREPROCESS: ${OVERPASS_PLANET_PREPROCESS:-} ``` which, in turn, allows the environment variable to be optionally set in Github Actions or any other way of invoking the overpass docker image using `docker compose`.
1 parent 643af2d commit 757a220

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if [[ ! -f /db/init_done ]]; then
8282
# for `file:///` scheme curl returns `000` HTTP status code
8383
if [[ $CURL_STATUS_CODE = "200" || $CURL_STATUS_CODE = "000" ]]; then
8484
(
85-
if [[ -n "${OVERPASS_PLANET_PREPROCESS+x}" ]]; then
85+
if [[ -n "${OVERPASS_PLANET_PREPROCESS:+x}" ]]; then
8686
echo "Running preprocessing command: ${OVERPASS_PLANET_PREPROCESS}"
8787
eval "${OVERPASS_PLANET_PREPROCESS}"
8888
fi &&

0 commit comments

Comments
 (0)