Fixing quoting with chroot wrapper calls.
This commit is contained in:
parent
33ef1c4ce7
commit
9b7193de8e
|
@ -11,7 +11,7 @@ set -e
|
||||||
|
|
||||||
Chroot ()
|
Chroot ()
|
||||||
{
|
{
|
||||||
COMMANDS="${1}"
|
COMMANDS="${@}"
|
||||||
|
|
||||||
# Executing commands in chroot
|
# Executing commands in chroot
|
||||||
Echo_debug "Executing: ${COMMANDS}"
|
Echo_debug "Executing: ${COMMANDS}"
|
||||||
|
|
|
@ -13,11 +13,11 @@ Apt ()
|
||||||
{
|
{
|
||||||
case "${LH_APT}" in
|
case "${LH_APT}" in
|
||||||
apt|apt-get)
|
apt|apt-get)
|
||||||
Chroot "apt-get ${APT_OPTIONS} ${@}"
|
Chroot apt-get ${APT_OPTIONS} ${@}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
aptitude)
|
aptitude)
|
||||||
Chroot "aptitude ${APTITUDE_OPTIONS} ${@}"
|
Chroot aptitude ${APTITUDE_OPTIONS} ${@}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue