Fixed whitespace and env pollution issues in pez

Change-Id: I40574d6cdab31e920535c09d24fe8463aee57586
This commit is contained in:
Michael Wright
2013-03-08 17:34:02 -08:00
parent f0d08ebd2f
commit eb73384e02

View File

@@ -1238,15 +1238,15 @@ function set_java_home() {
# 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