Updated Mac fix to general solution.
@@ -6,20 +6,9 @@ if uname | grep -iq cygwin; then
IS_CYGWIN="TRUE"
fi
-# Check if Mac OS X
-IS_MAC="FALSE"
-if uname | grep -iq Darwin; then
- IS_MAC="TRUE"
-fi
-
# Variable to hold path to this script
# Start by assuming it was the path invoked.
-if [ $IS_MAC = "TRUE" ]
-then
- ROBOT_SCRIPT=$0
-else
ROBOT_SCRIPT="$0"
-fi
# Handle resolving symlinks to this script.
# Using ls instead of readlink, because bsd and gnu flavors
@@ -36,12 +25,7 @@ while [ -h "$ROBOT_SCRIPT" ] ; do
done
# Directory that contains the this script
-if [ $IS_MAC = "TRUE" ]
-then
DIR=$(dirname "$ROBOT_SCRIPT")
-else
- DIR="$(dirname $ROBOT_SCRIPT)"
-fi
if [ $IS_CYGWIN = "TRUE" ]
then
