mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Merge pull request #4958 from Felixoid/entrypoint_skip_empty
Issue #4947, add check for empty variable
This commit is contained in:
commit
f40ab95739
@ -32,6 +32,8 @@ for dir in "$DATA_DIR" \
|
|||||||
"$USER_PATH" \
|
"$USER_PATH" \
|
||||||
"$FORMAT_SCHEMA_PATH"
|
"$FORMAT_SCHEMA_PATH"
|
||||||
do
|
do
|
||||||
|
# check if variable not empty
|
||||||
|
[ -z "$dir" ] && continue
|
||||||
# ensure directories exist
|
# ensure directories exist
|
||||||
if ! mkdir -p "$dir"; then
|
if ! mkdir -p "$dir"; then
|
||||||
echo "Couldn't create necessary directory: $dir"
|
echo "Couldn't create necessary directory: $dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user