File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Subproject commit cb38971ce39654bc9e4e96efcd22e950c3561f5d
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # # Check for Cygwin, use grep for a case-insensitive search
4+ IS_CYGWIN=" FALSE"
5+ if uname | grep -iq cygwin; then
6+ IS_CYGWIN=" TRUE"
7+ fi
8+
9+ # Variable to hold path to this script
10+ # Start by assuming it was the path invoked.
11+ ROBOT_SCRIPT=" $0 "
12+
13+ # Handle resolving symlinks to this script.
14+ # Using ls instead of readlink, because bsd and gnu flavors
15+ # have different behavior.
16+ while [ -h " $ROBOT_SCRIPT " ] ; do
17+ ls=` ls -ld " $ROBOT_SCRIPT " `
18+ # Drop everything prior to ->
19+ link=` expr " $ls " : ' .*-> \(.*\)$' `
20+ if expr " $link " : ' /.*' > /dev/null; then
21+ ROBOT_SCRIPT=" $link "
22+ else
23+ ROBOT_SCRIPT=` dirname " $ROBOT_SCRIPT " ` /" $link "
24+ fi
25+ done
26+
27+ # Directory that contains the this script
28+ DIR=$( dirname " $ROBOT_SCRIPT " )
29+
30+ if [ $IS_CYGWIN = " TRUE" ]
31+ then
32+ exec java $ROBOT_JAVA_ARGS -jar " $( cygpath -w $DIR /robot.jar) " " $@ "
33+ else
34+ exec java $ROBOT_JAVA_ARGS -jar " $DIR /robot.jar" " $@ "
35+ fi
You can’t perform that action at this time.
0 commit comments