Skip to content

Commit

Permalink
Fixes Yarn invocations on Darwin when symlinked
Browse files Browse the repository at this point in the history
yarnpkg#6568 had an attempt to fix this issue, however it does not work.
  • Loading branch information
serverwentdown committed Jan 16, 2019
1 parent fb03788 commit fe57546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/yarn
Expand Up @@ -3,7 +3,7 @@ argv0=$(echo "$0" | sed -e 's,\\,/,g')
basedir=$(dirname "$(readlink "$0" || echo "$argv0")")

case "$(uname -s)" in
Darwin) basedir="$( cd "$( dirname "$argv0" )" && pwd )";;
Darwin) basedir="$(cd "$(dirname "$0")" && cd "$basedir" && pwd)";;
Linux) basedir=$(dirname "$(readlink -f "$0" || echo "$argv0")");;
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
*MSYS*) basedir=`cygpath -w "$basedir"`;;
Expand Down

0 comments on commit fe57546

Please sign in to comment.