From 5df2c56e25d6cc822641c80c9268d15652cc1a54 Mon Sep 17 00:00:00 2001 From: Steffen Pankratz Date: Fri, 17 Jul 2015 18:47:13 +0200 Subject: [PATCH] - corrected PACKAGESVAR array handling Signed-off-by: Steffen Pankratz Reviewed-by: Tobias Klaus --- buildscript | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/buildscript b/buildscript index 15c2b4f..d658338 100755 --- a/buildscript +++ b/buildscript @@ -126,11 +126,13 @@ prepare() { FEED="${FEEDVAR}[@]" FEED=("${!FEED}") local NAME=${FEED[0]} - local PACKAGESVAR=${FEEDVAR}_PKGS + local PACKAGESVAR="${FEEDVAR}_PKGS" + PACKAGESVAR="${PACKAGESVAR}[@]" + PACKAGESVAR=(${!PACKAGESVAR}) - if [[ -n "${!PACKAGESVAR}" ]] ; then - echo "adding ${!PACKAGESVAR} from feed $NAME to available packages" - $target/scripts/feeds install -p $NAME ${!PACKAGESVAR} + if [[ -n "${PACKAGESVAR[@]}" ]] ; then + echo "adding ${PACKAGESVAR[*]} from feed $NAME to available packages" + $target/scripts/feeds install -p $NAME ${PACKAGESVAR[@]} fi done