Skip to content

Commit b173dbc

Browse files
author
Vladimir Kotal
committed
create directories recursively
1 parent b238bfb commit b173dbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/sync/reindex-project.ksh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function reindex_one
3232
#
3333
typeset -r log_conf_dir=$OPENGROK_INSTANCE_BASE/log/configs
3434
if [[ ! -d $log_conf_dir ]]; then
35-
mkdir "$log_conf_dir"
35+
mkdir -p "$log_conf_dir"
3636
if (( $? != 0 )); then
3737
print -u2 "cannot create directory $log_conf_dir"
3838
return 1
@@ -43,7 +43,7 @@ function reindex_one
4343
if [[ ! -f $log_conf || $template -nt $log_conf ]]; then
4444
typeset project_log_dir=$OPENGROK_INSTANCE_BASE/log/$project_name
4545
if [[ ! -d $project_log_dir ]]; then
46-
mkdir "$project_log_dir"
46+
mkdir -p "$project_log_dir"
4747
if (( $? != 0 )); then
4848
print -u2 "cannot create directory $project_log_dir"
4949
return 1

0 commit comments

Comments
 (0)