mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +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" \
|
"$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