parent
f3544ff68e
commit
2511fff259
|
@ -12,7 +12,7 @@ Arguments ()
|
||||||
{
|
{
|
||||||
ARGUMENTS="$(getopt --longoptions breakpoints,color,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")"
|
ARGUMENTS="$(getopt --longoptions breakpoints,color,conffile:,debug,force,help,quiet,usage,verbose,version --name=${PROGRAM} --options c:huv --shell sh -- "${@}")"
|
||||||
|
|
||||||
if [ "${?}" != "0" ]
|
if [ $? -ne 0 ]
|
||||||
then
|
then
|
||||||
Echo_error "terminating" >&2
|
Echo_error "terminating" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -34,7 +34,7 @@ Chroot ()
|
||||||
|
|
||||||
${_LINUX32} chroot "${CHROOT}" /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" TERM="${TERM}" DEBIAN_FRONTEND="${LB_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LB_DEBCONF_PRIORITY}" DEBCONF_NONINTERACTIVE_SEEN="true" DEBCONF_NOWARNINGS="true" ${ENV} ${COMMANDS}
|
${_LINUX32} chroot "${CHROOT}" /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" TERM="${TERM}" DEBIAN_FRONTEND="${LB_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LB_DEBCONF_PRIORITY}" DEBCONF_NONINTERACTIVE_SEEN="true" DEBCONF_NOWARNINGS="true" ${ENV} ${COMMANDS}
|
||||||
|
|
||||||
return "${?}"
|
return ${?}
|
||||||
}
|
}
|
||||||
|
|
||||||
Chroot_has_package() {
|
Chroot_has_package() {
|
||||||
|
|
|
@ -149,11 +149,11 @@ Echo_warning ()
|
||||||
|
|
||||||
Echo_status ()
|
Echo_status ()
|
||||||
{
|
{
|
||||||
__RETURN="${?}"
|
__RETURN=$?
|
||||||
|
|
||||||
if [ "${_COLOR}" = "false" ]
|
if [ "${_COLOR}" = "false" ]
|
||||||
then
|
then
|
||||||
if [ "${__RETURN}" = "0" ]
|
if [ $__RETURN -eq 0 ]
|
||||||
then
|
then
|
||||||
printf " done.\n"
|
printf " done.\n"
|
||||||
else
|
else
|
||||||
|
@ -162,7 +162,7 @@ Echo_status ()
|
||||||
else
|
else
|
||||||
Cursor_columns_backward 8
|
Cursor_columns_backward 8
|
||||||
|
|
||||||
if [ "${__RETURN}" = "0" ]
|
if [ $__RETURN -eq 0 ]
|
||||||
then
|
then
|
||||||
printf " ${GREEN}done${NO_COLOR}. \n"
|
printf " ${GREEN}done${NO_COLOR}. \n"
|
||||||
else
|
else
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
Exit ()
|
Exit ()
|
||||||
{
|
{
|
||||||
VALUE="${?}"
|
VALUE=$?
|
||||||
|
|
||||||
if [ "${_DEBUG}" = "true" ]
|
if [ "${_DEBUG}" = "true" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -166,8 +166,7 @@ Local_arguments ()
|
||||||
LONG_OPTIONS="$(echo ${LONG_OPTIONS} | tr -d ' ')"
|
LONG_OPTIONS="$(echo ${LONG_OPTIONS} | tr -d ' ')"
|
||||||
ARGUMENTS="$(getopt --longoptions ${LONG_OPTIONS} --name="${PROGRAM}" --options a:d:m:k:b:s:c:huv --shell sh -- "${@}")"
|
ARGUMENTS="$(getopt --longoptions ${LONG_OPTIONS} --name="${PROGRAM}" --options a:d:m:k:b:s:c:huv --shell sh -- "${@}")"
|
||||||
|
|
||||||
if [ "${?}" != "0" ]
|
if [ $? -ne 0 ]; then
|
||||||
then
|
|
||||||
Echo_error "terminating" >&2
|
Echo_error "terminating" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue