diff options
-rwxr-xr-x | helpers/lh_config | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/helpers/lh_config b/helpers/lh_config index 2cb11268a..c2137ad6e 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -714,13 +714,16 @@ fi # Reading existing configuration Read_conffiles config/all config/common config/bootstrap config/chroot config/binary config/source -if [ -e config.cfg ] +if [ -x config.cfg ] then - Local_arguments $(cat config.cfg) "${@}" -else - Local_arguments "${@}" + EXTRA_ARGUMENTS="./config.cfg" +elif [ -r config.cfg ] +then + EXTRA_ARGUMENTS="$(cat config.cfg)" fi +Local_arguments ${EXTRA_ARGUMENTS} "${@}" + if [ -n "${_CONFFILE}" ] then Read_conffiles "${_CONFFILE}" |