Merge "Create parent directory in merge_config_file"

This commit is contained in:
Zuul 2025-01-21 01:52:52 +00:00 committed by Gerrit Code Review
commit f937777598

View File

@ -90,6 +90,7 @@ function merge_config_file {
local real_configfile
real_configfile=$(eval echo $configfile)
if [ ! -f $real_configfile ]; then
mkdir -p $(dirname $real_configfile) || die $LINENO "could not create the directory of $real_configfile ($configfile)"
touch $real_configfile || die $LINENO "could not create config file $real_configfile ($configfile)"
fi