diff --git a/README.md b/README.md index 5f0bb10..8243e5f 100644 --- a/README.md +++ b/README.md @@ -29,18 +29,6 @@ npm install oak-rebuild $(pwd) #directory path of wherever you want to rebuild ``` -> Mac Tip: readlink is missing from OSX. -> -> To fix this run these commands: -> -> ``` -> brew install coreutils -> sudo ln -s /usr/local/bin/greadlink /usr/local/bin/readlink -> ./node_modules/.bin/oak-rebuild -> ``` -> -> This will allow readlink to work on OSX - ### Locally If you want to use a local version, you can install and execute oak from the `.bin` folder. diff --git a/bin/rebuild b/bin/rebuild index 9ad33b9..20c3c72 100755 --- a/bin/rebuild +++ b/bin/rebuild @@ -5,8 +5,8 @@ # at the right headers, not the local node version headers that are the default # configuration of local npm -OAK_PATH=$(readlink -f "$(pwd)/$(dirname "${0}")/oak") -REBUILD_PATH=$(readlink -f ${1:-$(pwd)}) +OAK_PATH=$(realpath -e "$(pwd)/$(dirname "${0}")/oak") +REBUILD_PATH=$(realpath -e ${1:-$(pwd)}) echo "" echo "* Rebuilding node_modules at $REBUILD_PATH" diff --git a/readme.md b/readme.md index 7b2023d..bc86679 100644 --- a/readme.md +++ b/readme.md @@ -30,17 +30,6 @@ oak-rebuild $(pwd) #directory path of wherever you want to rebuild ``` > Mac Tip: readlink is missing from OSX. -> -> To fix this run these commands: -> -> ``` -> brew install coreutils -> sudo ln -s /usr/local/bin/greadlink /usr/local/bin/readlink -> ./node_modules/.bin/oak-rebuild -> ``` -> -> This will allow readlink to work on OSX -> > Also make sure you have installed the XCode Commandline Tools > `xcode-select --install`