Skip to content

Commit

Permalink
Fix yarn "entrypoint" shell script (#3362)
Browse files Browse the repository at this point in the history
#3260 PR broke the `bin/yarn` shell script (see issue #3321)
#3338 tried to fix it in a improper way

This way should work.
  • Loading branch information
pichouk authored and Daniel15 committed May 12, 2017
1 parent a705b79 commit 0949806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/yarn
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ command_exists() {
}

if command_exists node; then
if [[ "$YARN_FORCE_WINPTY" -eq 1 ]]; then
if [ "$YARN_FORCE_WINPTY" = 1 ]; then
winpty node "$basedir/yarn.js" "$@"
else
node "$basedir/yarn.js" "$@"
Expand Down

0 comments on commit 0949806

Please sign in to comment.