From 97b6afb440e570884d4ca32b0d0fcbaff50d0d72 Mon Sep 17 00:00:00 2001 From: Lars Müller Date: Tue, 9 Jan 2007 00:01:15 +0000 Subject: Ensure that we don't add a superfluous space and later do not detect if the packagelist is empty. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@603 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/slxossetup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/slxossetup b/installer/slxossetup index 584cadc6..829ef491 100755 --- a/installer/slxossetup +++ b/installer/slxossetup @@ -340,7 +340,8 @@ function install_slxselection() local packagelist variable for variable in ${!SLX_INSTALL_PACKAGES_*}; do - packagelist="${packagelist} $( eval echo \$$variable)" + packages=$( eval echo \$$variable) + packagelist="${packagelist:+$packagelist }$( eval echo \$$variable)" done test -z "${packagelist}" && \ return -- cgit v1.2.3-55-g7522