OSDN Git Service

Fixed whitespace and env pollution issues in pez
authorMichael Wright <michaelwr@google.com>
Sat, 9 Mar 2013 01:34:02 +0000 (17:34 -0800)
committerMichael Wright <michaelwr@google.com>
Sat, 9 Mar 2013 01:34:02 +0000 (17:34 -0800)
Change-Id: I40574d6cdab31e920535c09d24fe8463aee57586

envsetup.sh

index 0ab15ae..15ce152 100644 (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