From 5dc36b14cc6a959ef43318d0c5272f176d135a9d Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Fri, 21 Oct 2011 14:41:10 -0700 Subject: [PATCH] Make script/server work on OS X again - -e is not a valid option to readlink on darwin --- script/server | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/server b/script/server index bb69e9df0..b4bfd1f77 100755 --- a/script/server +++ b/script/server @@ -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