diff options
Diffstat (limited to 'helpers/lh_config')
-rwxr-xr-x | helpers/lh_config | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helpers/lh_config b/helpers/lh_config index 1bbb2d4..c92d4c9 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -716,13 +716,13 @@ Read_conffiles config/all config/common config/bootstrap config/chroot config/bi if [ -x config.cfg ] then - EXTRA_ARGUMENTS="./config.cfg" + EXTRA_ARGUMENTS="$(./config.cfg)" elif [ -r config.cfg ] then - EXTRA_ARGUMENTS="$(cat config.cfg)" + EXTRA_ARGUMENTS="$(sed -e '/^$/d' -e '/^#/d' config.cfg | sed -e '$!N;s/\n/ /g')" fi -Local_arguments ${EXTRA_ARGUMENTS} "${@}" +Local_arguments "${EXTRA_ARGUMENTS} ${@}" if [ -n "${_CONFFILE}" ] then |