mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Issue #4947, add check for empty variable
This commit is contained in:
parent
c5acd61e0d
commit
87abf1f38e
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user