summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-01-30 19:26:46 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2014-01-30 19:26:46 +0000
commitef9086c3a52572fbd7f9c16e57093086224ce914 (patch)
tree02f6d82da30da1ae01f6995cde0859d5382932b7
parent8d25bed4bd18daff0b7151e47542b5edd0467fd7 (diff)
downloadedk2-topics-ef9086c3a52572fbd7f9c16e57093086224ce914.tar.gz
edksetup.sh: Code style
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15199 6f19259b-4bc3-4df7-8a09-765794883524
-rwxr-xr-xedksetup.sh28
1 files changed, 15 insertions, 13 deletions
diff --git a/edksetup.sh b/edksetup.sh
index 39b76e1c2..7285dfe8d 100755
--- a/edksetup.sh
+++ b/edksetup.sh
@@ -44,19 +44,20 @@ function SetupEnv()
function SourceEnv()
{
-if [ \
- "$1" = "-?" -o \
- "$1" = "-h" -o \
- "$1" = "--help" \
- ]
-then
- HelpMsg
- return
-else
- SetupEnv "$*"
-fi
+ if [ \
+ "$1" = "-?" -o \
+ "$1" = "-h" -o \
+ "$1" = "--help" \
+ ]
+ then
+ HelpMsg
+ return
+ else
+ SetupEnv "$*"
+ fi
}
-if [ $# -gt 1 ]
+
+if [ $# -gt 1 ]
then
HelpMsg
return
@@ -64,6 +65,7 @@ elif [ $# -eq 1 ] && [ "$1" != "BaseTool" ]
then
HelpMsg
return
-fi
+fi
+
SourceEnv "$*"