If setup-environment won't be running like expect show error message at bottom of log to be more visible.
Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br> --- setup-environment | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup-environment b/setup-environment index a955182..53c324f 100755 --- a/setup-environment +++ b/setup-environment @@ -97,8 +97,9 @@ fi LIST_MACHINES=`ls -1 $CWD/sources/*/conf/machine` VALID_MACHINE=`echo -e "$LIST_MACHINES" | grep ${MACHINE}.conf$ | wc -l` if [ "x$MACHINE" = "x" ] || [ "$VALID_MACHINE" = "0" ]; then + usage echo -e "\nThe \$MACHINE you have specified ($MACHINE) is not supported by this build setup" - usage && clean_up + clean_up return 1 else if [ ! -e $1/conf/local.conf.sample ]; then @@ -117,8 +118,9 @@ fi LIST_DISTROS=`ls -1 $CWD/sources/meta-freescale-distro/conf/distro` VALID_DISTRO=`echo -e "$LIST_DISTROS" | grep ${DISTRO}.conf$ | wc -l` if [ "x$DISTRO" = "x" ] || [ "$VALID_DISTRO" = "0" ]; then + usage echo -e "The \$DISTRO you have specified ($DISTRO) is not supported by this build setup\n" - usage && clean_up + clean_up return 1 else if [ ! -e $1/conf/local.conf.sample ]; then -- 2.1.4 -- _______________________________________________ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale