Skip to content

Commit

Permalink
make run-class.sh working in Mac per ctasada
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhongjie Wu committed Apr 3, 2013
1 parent 4964e7d commit ceb7de8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/run-class.sh
Expand Up @@ -21,8 +21,14 @@ if [ $# -lt 1 ]; then
exit 1
fi

script_path=$(readlink -f "$0")
script_dir=`dirname "$script_path"`
if [ $(uname) == 'Darwin' ]; then
pushd `dirname $0` > /dev/null
script_dir=$(pwd)
popd > /dev/null
else
script_path=$(readlink -f "$0")
script_dir=`dirname "$script_path"`
fi

base_dir=`dirname "$script_dir"`

Expand Down

0 comments on commit ceb7de8

Please sign in to comment.