Subject: Fixing quoting with chroot wrapper calls.

From: Daniel Baumann <[email-masked]>
Date: Sun, 24 Feb 2008 15:19:41 +0100

---
 functions/chroot.sh  | 2 +-
 functions/wrapper.sh | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/functions/chroot.sh b/functions/chroot.sh
index 17c5f36..63151db 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 b47e3b9..0d38ed6 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
 }
-- 
cgit v1.0