diff options
Diffstat (limited to 'functions/wrapper.sh')
-rwxr-xr-x | functions/wrapper.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functions/wrapper.sh b/functions/wrapper.sh index 3b8a67232..ab14a485e 100755 --- a/functions/wrapper.sh +++ b/functions/wrapper.sh @@ -10,13 +10,16 @@ Apt () { + CHROOT="${1}" + shift + case "${LB_APT}" in apt|apt-get) - Chroot chroot apt-get ${APT_OPTIONS} ${@} + Chroot ${CHROOT} apt-get ${APT_OPTIONS} ${@} ;; aptitude) - Chroot chroot aptitude ${APTITUDE_OPTIONS} ${@} + Chroot ${CHROOT} aptitude ${APTITUDE_OPTIONS} ${@} ;; esac } |