changed mode
[feisty_meow.git] / customizing / fred / java_profile.sh
index 7e0c1721faba1af18ea6a0925a2992b6f2f2e00f..8c731ecc8b52ac403fabcb603968bf09dd5c5a55 100644 (file)
@@ -6,16 +6,18 @@
 
 ############################
 
-function whichable()
-{
-  to_find="$1"; shift
-  which which &>/dev/null
-  if [ $? -ne 0 ]; then
-    # there is no which command here.  we produce nothing due to this.
-    echo
-  fi
-  echo $(which $to_find)
-}
+source $FEISTY_MEOW_SCRIPTS/core/functions.sh
+
+#function whichable()
+#{
+#  to_find="$1"; shift
+#  which which &>/dev/null
+#  if [ $? -ne 0 ]; then
+#    # there is no which command here.  we produce nothing due to this.
+#    echo
+#  fi
+#  echo $(which $to_find)
+#}
 
 # this reports when we have totally failed to figure out where a folder
 # is actually located on the machine.
@@ -89,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