fixed proc/mounts thing.
authorChris Koeritz <fred@gruntose.com>
Mon, 30 Sep 2013 00:57:54 +0000 (19:57 -0500)
committerChris Koeritz <fred@gruntose.com>
Mon, 30 Sep 2013 00:57:54 +0000 (19:57 -0500)
customizing/fred/java_profile.sh

index f9268a015adb5b9de99591e41d5501452b784e16..8c731ecc8b52ac403fabcb603968bf09dd5c5a55 100644 (file)
@@ -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