From: Chris Koeritz Date: Fri, 9 Mar 2012 14:15:51 +0000 (-0500) Subject: hiding some warning noise on stderr. X-Git-Tag: 2.140.90~1496 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=fbbf136527ca3583344ab24080600c62c296cf66;p=feisty_meow.git hiding some warning noise on stderr. --- 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.