cleaned stderr out of output.
authorChris Koeritz <fred@gruntose.com>
Mon, 13 Feb 2012 20:50:15 +0000 (15:50 -0500)
committerChris Koeritz <fred@gruntose.com>
Mon, 13 Feb 2012 20:50:15 +0000 (15:50 -0500)
examples/custom_overrides/fred/java_profile.sh

index 0f25a7ac3988bba13333c14bcd1e47d8974f4d09..69cb9308e345ea6b061b5213a1433f8bb53d4525 100644 (file)
@@ -63,7 +63,7 @@ if [ ! -d "$JAVA_HOME" ]; then
   JAVA_BIN_PIECE=Commands
 fi
 # last thing is to tell them we couldn't find it.
-if [ ! -d "$JAVA_HOME" -a -z "$(which java)" ]; then
+if [ ! -d "$JAVA_HOME" -a -z "$(which java 2>/dev/null)" ]; then
   intuition_failure JAVA_HOME
   unset JAVA_BIN_PIECE
 fi
@@ -94,7 +94,7 @@ if [ ! -d "$ECLIPSE_DIR" ]; then
   ECLIPSE_DIR="/e/tools/eclipse"
 fi
 # final option is to whine.
-if [ ! -d "$ECLIPSE_DIR" -a -z "$(which eclipse)" ]; then
+if [ ! -d "$ECLIPSE_DIR" -a -z "$(which eclipse 2>/dev/null)" ]; then
   intuition_failure ECLIPSE_DIR
 fi