summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-02-24 15:19:41 +0100
committerDaniel Baumann <daniel@debian.org>2008-02-24 15:19:41 +0100
commit9b7193de8e306645baf75b792d05841f9fb7876a (patch)
tree497b9592e10b7f2d02fdf523e041773d3f7bac46 /functions
parent33ef1c4ce7918a15dd37fc728774bae19a8de63c (diff)
downloadvyos-live-build-9b7193de8e306645baf75b792d05841f9fb7876a.tar.gz
vyos-live-build-9b7193de8e306645baf75b792d05841f9fb7876a.zip
Fixing quoting with chroot wrapper calls.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/chroot.sh2
-rwxr-xr-xfunctions/wrapper.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/functions/chroot.sh b/functions/chroot.sh
index 17c5f3664..63151dbe1 100755
--- a/functions/chroot.sh
+++ b/functions/chroot.sh
@@ -11,7 +11,7 @@ set -e
Chroot ()
{
- COMMANDS="${1}"
+ COMMANDS="${@}"
# Executing commands in chroot
Echo_debug "Executing: ${COMMANDS}"
diff --git a/functions/wrapper.sh b/functions/wrapper.sh
index b47e3b9dc..0d38ed6de 100755
--- a/functions/wrapper.sh
+++ b/functions/wrapper.sh
@@ -13,11 +13,11 @@ Apt ()
{
case "${LH_APT}" in
apt|apt-get)
- Chroot "apt-get ${APT_OPTIONS} ${@}"
+ Chroot apt-get ${APT_OPTIONS} ${@}
;;
aptitude)
- Chroot "aptitude ${APTITUDE_OPTIONS} ${@}"
+ Chroot aptitude ${APTITUDE_OPTIONS} ${@}
;;
esac
}