Skip to content

Commit f937777

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Create parent directory in merge_config_file"
2 parents 0576e90 + e825ba0 commit f937777

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

inc/meta-config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ function merge_config_file {
9090
local real_configfile
9191
real_configfile=$(eval echo $configfile)
9292
if [ ! -f $real_configfile ]; then
93+
mkdir -p $(dirname $real_configfile) || die $LINENO "could not create the directory of $real_configfile ($configfile)"
9394
touch $real_configfile || die $LINENO "could not create config file $real_configfile ($configfile)"
9495
fi
9596

0 commit comments

Comments
 (0)