Browse code

Fix get_packages when $DISTRO is not set

Sourcing the tools/install-prereqs.sh script with TOP_DIR set results
in GetDistro being called in get_packages and echoing the result.
Since all output from get_packages is assumed to be package names,
this results in the attempted installation of the non-existant 'Found'
'Distro' and '[distro name]' packages. This change removes the echo
statement to avoid this problem.

Change-Id: Idd05c31b9eec9e6209666fa16fa425cdf1f35aa2

Maru Newby authored on 2015/01/09 22:06:56
Showing 1 changed files
... ...
@@ -1011,7 +1011,6 @@ function get_packages {
1011 1011
     fi
1012 1012
     if [[ -z "$DISTRO" ]]; then
1013 1013
         GetDistro
1014
-        echo "Found Distro $DISTRO"
1015 1014
     fi
1016 1015
     for service in ${services//,/ }; do
1017 1016
         # Allow individual services to specify dependencies