Fixed whitespace and env pollution issues in pez
Change-Id: I40574d6cdab31e920535c09d24fe8463aee57586
diff --git a/envsetup.sh b/envsetup.sh
index 0ab15ae..15ce152 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1238,15 +1238,15 @@
# Print colored exit condition
function pez {
- $@
- retval=$?
- if [ $retval -ne 0 ]
- then
- echo -e "\e[0;31mFAILURE\e[00m"
- else
- echo -e "\e[0;32mSUCCESS\e[00m"
- fi
- return $retval
+ "$@"
+ local retval=$?
+ if [ $retval -ne 0 ]
+ then
+ echo -e "\e[0;31mFAILURE\e[00m"
+ else
+ echo -e "\e[0;32mSUCCESS\e[00m"
+ fi
+ return $retval
}
if [ "x$SHELL" != "x/bin/bash" ]; then