Respecting LH_QUIET for cdebootstrap calls, thanks to Justin Pryzby <pryzbyj@justinpryzby.com>.

This commit is contained in:
Daniel Baumann 2007-10-04 22:08:31 +02:00
parent 72fef5a3c6
commit de59430e16
2 changed files with 6 additions and 4 deletions

View File

@ -81,17 +81,17 @@ else
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal" CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
fi fi
if [ "${LH_DEBUG}" = "true" ] if [ "${LH_DEBUG}" = "enabled" ]
then then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --debug" CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --debug"
fi fi
if [ "${LH_QUIET}" = "true" ] if [ "${LH_QUIET}" = "enabled" ]
then then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --quiet" CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --quiet"
fi fi
if [ "${LH_VERBOSE}" = "true" ] if [ "${LH_VERBOSE}" = "enabled" ]
then then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --verbose" CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --verbose"
fi fi
@ -127,7 +127,9 @@ then
fi fi
# Executing cdebootstrap (regular run) # Executing cdebootstrap (regular run)
[ "$LH_QUIET" = "enabled" ] && echo -n "Running cdebootstrap ... "
${LH_ROOT_COMMAND} cdebootstrap ${CDEBOOTSTRAP_OPTIONS} "${LH_DISTRIBUTION}" chroot "${LH_MIRROR_BOOTSTRAP}" ${LH_ROOT_COMMAND} cdebootstrap ${CDEBOOTSTRAP_OPTIONS} "${LH_DISTRIBUTION}" chroot "${LH_MIRROR_BOOTSTRAP}"
[ "$LH_QUIET" = "enabled" ] && echo "done."
if [ -n "${LH_ROOT_COMMAND}" ] if [ -n "${LH_ROOT_COMMAND}" ]
then then

View File

@ -703,7 +703,7 @@ LH_TEMPLATES="${LH_TEMPLATES}"
# \$LH_QUIET: enable quiet # \$LH_QUIET: enable quiet
# (Default: ${LH_QUIET}) # (Default: ${LH_QUIET})
#LH_QUIET="${LH_QUIET}" LH_QUIET="${LH_QUIET}"
# \$LH_VERBOSE: enable verbose # \$LH_VERBOSE: enable verbose
# (Default: ${LH_VERBOSE}) # (Default: ${LH_VERBOSE})