From f15cbde4d459b2859eff3a8d2f62cd41727f886f Mon Sep 17 00:00:00 2001
From: Leif Lindholm <leif.lindholm@linaro.org>
Date: Wed, 29 Jan 2014 16:46:31 +0000
Subject: [PATCH] fixes for new edksetup.sh
---
edksetup.sh | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
@@ -30,6 +30,7 @@ function HelpMsg()
echo Please note: This script must be \'sourced\' so the environment can be changed.
echo ". edksetup.sh"
echo "source edksetup.sh"
+ return 1
}
function SetupEnv()
@@ -51,7 +52,6 @@ if [ \
]
then
HelpMsg
- return
else
SetupEnv "$*"
fi
@@ -59,11 +59,14 @@ fi
if [ $# -gt 1 ]
then
HelpMsg
- return
-elif [ $# -eq 1 ] && [ "$1" != "BaseTool" ]
+elif [ $# -eq 1 ] && [ "$1" != "BaseTools" ]
then
HelpMsg
- return
fi
+RETVAL=$?
+if [ $RETVAL -ne 0 ]
+then
+ return $RETVAL
+fi
SourceEnv "$*"
--
1.7.10.4