summaryrefslogtreecommitdiff
path: root/helpers/lh_config
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_config')
-rwxr-xr-xhelpers/lh_config11
1 files changed, 7 insertions, 4 deletions
diff --git a/helpers/lh_config b/helpers/lh_config
index 2cb1126..c2137ad 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}"