From fbbf136527ca3583344ab24080600c62c296cf66 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 9 Mar 2012 09:15:51 -0500 Subject: [PATCH] hiding some warning noise on stderr. --- examples/custom_overrides/fred/java_profile.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/custom_overrides/fred/java_profile.sh b/examples/custom_overrides/fred/java_profile.sh index 4d55c6db..612308e6 100755 --- a/examples/custom_overrides/fred/java_profile.sh +++ b/examples/custom_overrides/fred/java_profile.sh @@ -50,12 +50,12 @@ if [ ! -d "$JAVA_HOME" ]; then export JAVA_HOME=/usr/lib/jvm/java-7-oracle/jre fi if [ ! -d "$JAVA_HOME" ]; then - JAVA_HOME="$(ls -d c:/tools/*jdk*)" + JAVA_HOME="$(ls -d c:/tools/*jdk* 2>/dev/null)" fi if [ ! -d "$JAVA_HOME" ]; then - if [ ! -z "$(grep 'd:' /proc/mounts)" ]; then + if [ ! -z "$(grep 'd:' /proc/mounts 2>/dev/null)" ]; then # try using a windows version. - JAVA_HOME="$(ls -d d:/tools/*jdk*)" + JAVA_HOME="$(ls -d d:/tools/*jdk* 2>/dev/null)" fi fi # this should go last, since it changes the bin dir. -- 2.34.1