Skip to content

Commit

Permalink
readlink -f is not cross-platform and doesn't work on OS X.
Browse files Browse the repository at this point in the history
Replaced with pwd -P:

     -P      Display the physical current working directory (all symbolic
             links resolved).
  • Loading branch information
yrashk committed Jan 23, 2012
1 parent 41804c2 commit 8850bec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/joxa
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

SCRIPTPATH=$(cd $(dirname $(readlink -f $0))/..; pwd)
SCRIPTPATH=$(cd $(dirname $0)/..; pwd -P)
JOXAPATH=${JOXAPATH:-$SCRIPTPATH}

erl -noshell -env ERL_LIBS $JOXAPATH/deps -pa $JOXAPATH/ebin \
Expand Down
2 changes: 1 addition & 1 deletion bin/joxac
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh

SCRIPTPATH=$(cd $(dirname $(readlink -f $0))/..; pwd)
SCRIPTPATH=$(cd $(dirname $0)/..; pwd -P)
JOXAPATH=${JOXAPATH:-$SCRIPTPATH}

erl -noshell -env ERL_LIBS $JOXAPATH/deps -pa $JOXAPATH/ebin \
Expand Down

0 comments on commit 8850bec

Please sign in to comment.