summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-30 15:53:32 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-30 15:53:32 +0100
commit7c6f24fbdc68de355fab82c12b3d8d9e10d9f47f (patch)
treecdcc6029ffc80fb7e43d5078867cb75c72b5efc4
parent1dfd1072e598e9d97e38f7533cee6be1b1378cd2 (diff)
downloadjenkins.debian.net-7c6f24fbdc68de355fab82c12b3d8d9e10d9f47f.tar.xz
patch by intrigeri (thanks) to allow to install more than one package
-rwxr-xr-xbin/chroot_tester.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/chroot_tester.sh b/bin/chroot_tester.sh
index 50e4add5..45f69672 100755
--- a/bin/chroot_tester.sh
+++ b/bin/chroot_tester.sh
@@ -72,7 +72,7 @@ EOF
prepare_install_packages() {
cat >> $CTMPFILE <<-EOF
$SCRIPT_HEADER
-apt-get -y install $1
+apt-get -y install $@
EOF
}
@@ -97,7 +97,8 @@ bootstrap() {
install_packages() {
echo "Installing extra packages for $1 now."
- prepare_install_packages $2
+ shift
+ prepare_install_packages $@
execute_ctmpfile
prepare_install_packages desktop-base
execute_ctmpfile