Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix which check during yarn install (#2061) #2071

Merged
merged 1 commit into from
Nov 29, 2016
Merged

Fix which check during yarn install (#2061) #2071

merged 1 commit into from
Nov 29, 2016

Conversation

DenisGorbachev
Copy link
Contributor

Summary

This PR fixes #2061. Since the if construct by design tests the exit value of commands, it’s better to test the which yarn command directly.

Test plan

rm -rf ~/.yarn
mkdir ~/.yarn
./scripts/install-latest.sh

@torifat
Copy link
Member

torifat commented Nov 29, 2016

LGTM. Also $HOME is better than ~ IMO.

@torifat torifat merged commit 2a0afc7 into yarnpkg:master Nov 29, 2016
@DenisGorbachev
Copy link
Contributor Author

@torifat That's what I thought as well. Thanks for merging!

@DenisGorbachev DenisGorbachev deleted the issue-2061 branch November 29, 2016 12:51
@Daniel15
Copy link
Member

Daniel15 commented Dec 2, 2016

This file isn't used any more (seems like I forgot to merge #2066). You'll have to change the file over here: https://github.com/yarnpkg/website/blob/master/install.sh

Daniel15 pushed a commit to yarnpkg/website that referenced this pull request Dec 9, 2016
lovelypuppy0607 added a commit to lovelypuppy0607/website that referenced this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation script fails if ~/.yarn exists but does not contain a Yarn installation
3 participants