Make script/server work on OS X again - -e is not a valid option to readlink on darwin

This commit is contained in:
Sarah Mei 2011-10-21 14:41:10 -07:00
parent 484f46d70f
commit 5dc36b14cc

View file

@ -7,7 +7,8 @@
#
# ensure right directory
cd $(dirname $(readlink -e $0))/..
realpath=$( ruby -e "puts File.expand_path(\"$0\")")
cd $(dirname $realpath)/..
# Check if script_server.yml exists
if [ ! -e 'config/script_server.yml' ]; then