X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=examples%2Fcustom_overrides%2Ffred%2Fjava_profile.sh;h=69cb9308e345ea6b061b5213a1433f8bb53d4525;hb=f4c535d65bdae3e623c9df35e961312dc32fb809;hp=0f25a7ac3988bba13333c14bcd1e47d8974f4d09;hpb=e0f26c9b770337425ac26c56f09595a65d91959c;p=feisty_meow.git 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