From f4c535d65bdae3e623c9df35e961312dc32fb809 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 13 Feb 2012 15:50:15 -0500 Subject: [PATCH] cleaned stderr out of output. --- examples/custom_overrides/fred/java_profile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/custom_overrides/fred/java_profile.sh b/examples/custom_overrides/fred/java_profile.sh index 0f25a7ac..69cb9308 100644 --- a/examples/custom_overrides/fred/java_profile.sh +++ b/examples/custom_overrides/fred/java_profile.sh @@ -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 -- 2.34.1