Merge "Create config file in merge_config_file"
This commit is contained in:
commit
e52cfc5524
@ -86,6 +86,14 @@ function merge_config_file {
|
||||
local matchgroup=$2
|
||||
local configfile=$3
|
||||
|
||||
# note, configfile might be a variable (note the iniset, etc
|
||||
# created in the mega-awk below is "eval"ed too, so we just leave
|
||||
# it alone.
|
||||
local real_configfile=$(eval echo $configfile)
|
||||
if [ ! -f $real_configfile ]; then
|
||||
touch $real_configfile
|
||||
fi
|
||||
|
||||
get_meta_section $file $matchgroup $configfile | \
|
||||
$CONFIG_AWK_CMD -v configfile=$configfile '
|
||||
BEGIN {
|
||||
|
@ -8,6 +8,8 @@ TOP=$(cd $(dirname "$0")/.. && pwd)
|
||||
source $TOP/inc/ini-config
|
||||
source $TOP/inc/meta-config
|
||||
|
||||
set -e
|
||||
|
||||
# check_result() tests and reports the result values
|
||||
# check_result "actual" "expected"
|
||||
function check_result {
|
||||
|
Loading…
x
Reference in New Issue
Block a user