Skip to content

Commit

Permalink
Update OSX shell script to work if it is invoked via a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
danlucraft committed Mar 29, 2012
1 parent 2706746 commit 0c05843
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion assets/redcar.sh
@@ -1,3 +1,9 @@
#!/bin/sh
BASEDIR=`dirname $0`
if [ -h "$0" ]
then
BASEDIR=`dirname $(readlink $0)`
else
BASEDIR=`dirname $0`
fi

exec java -XstartOnFirstThread -Dfile.encoding=UTF8 -d32 -classpath $BASEDIR/vendor/jruby-complete.jar:$BASEDIR org.jruby.Main $BASEDIR/bin/redcar --no-sub-jruby --show-log --log-level=debug

0 comments on commit 0c05843

Please sign in to comment.