From 0d77851abf1f2f53905c04aa9b17c1d076f0ce36 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 29 Sep 2013 19:57:54 -0500 Subject: [PATCH] fixed proc/mounts thing. --- customizing/fred/java_profile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/customizing/fred/java_profile.sh b/customizing/fred/java_profile.sh index f9268a01..8c731ecc 100644 --- a/customizing/fred/java_profile.sh +++ b/customizing/fred/java_profile.sh @@ -91,12 +91,12 @@ if [ ! -d "$ECLIPSE_DIR" ]; then ECLIPSE_DIR="c:/tools/eclipse" fi if [ ! -d "$ECLIPSE_DIR" ]; then - if [ ! -z "$(grep -i 'd:' /proc/mounts)" ]; then + if [ ! -z "$(grep -i 'd:' /proc/mounts 2>/dev/null)" ]; then ECLIPSE_DIR="d:/tools/eclipse" fi fi if [ ! -d "$ECLIPSE_DIR" ]; then - if [ ! -z "$(grep -i 'e:' /proc/mounts)" ]; then + if [ ! -z "$(grep -i 'e:' /proc/mounts 2>/dev/null)" ]; then ECLIPSE_DIR="e:/tools/eclipse" fi fi -- 2.34.1