diff options
Diffstat (limited to 'helpers/lh_source')
-rwxr-xr-x | helpers/lh_source | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/helpers/lh_source b/helpers/lh_source index 56c1849..bf07772 100755 --- a/helpers/lh_source +++ b/helpers/lh_source @@ -9,21 +9,21 @@ set -e -# Source common functions -for FUNCTION in /usr/share/live-helper/functions/*.sh +# Including common functions +LH_BASE="${LH_BASE:-/usr/share/live-helper}" + +for FUNCTION in "${LH_BASE}"/functions/*.sh do - . ${FUNCTION} + . "${FUNCTION}" done -# Set static variables +# Setting static variables DESCRIPTION="build source images" HELP="" USAGE="${PROGRAM} [--force]" Arguments "${@}" -Echo_debug "Init ${PROGRAM}" - # Reading configuration files Read_conffile config/common Read_conffile config/bootstrap @@ -32,8 +32,6 @@ Read_conffile config/binary Read_conffile config/source Set_defaults -Breakpoint "source: Init" - # Enabling network in chroot lh_chroot_hosts install ${*} lh_chroot_resolv install ${*} |