From 87abf1f38e3d8991b8c9658d8a78023c912d5db0 Mon Sep 17 00:00:00 2001 From: "Mikhail f. Shiryaev" Date: Wed, 10 Apr 2019 14:29:04 +0200 Subject: [PATCH] Issue #4947, add check for empty variable --- docker/server/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/server/entrypoint.sh b/docker/server/entrypoint.sh index 78d591cfd50..b1a8802d95f 100644 --- a/docker/server/entrypoint.sh +++ b/docker/server/entrypoint.sh @@ -32,6 +32,8 @@ for dir in "$DATA_DIR" \ "$USER_PATH" \ "$FORMAT_SCHEMA_PATH" do + # check if variable not empty + [ -z "$dir" ] && continue # ensure directories exist if ! mkdir -p "$dir"; then echo "Couldn't create necessary directory: $dir"