[meta-freescale] [base][PATCH v2 2/2] setup-environment: Move error log from top to bottom

Fabio Berton fabio.berton at ossystems.com.br
Mon Nov 7 05:29:59 PST 2016


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.berton at ossystems.com.br>
---
 setup-environment | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/setup-environment b/setup-environment
index 797a6aa..a193abf 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



More information about the meta-freescale mailing list