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

yarn install script has issues when running in dash #1044

Open
interone-ms opened this issue Feb 5, 2020 · 1 comment
Open

yarn install script has issues when running in dash #1044

interone-ms opened this issue Feb 5, 2020 · 1 comment

Comments

@interone-ms
Copy link

Bug description

When running the yarn install.sh script in a system set with dash as sh shell, there are errors during installation displayed, as the installation script uses bashisms.

Command

./install.sh

What is the current behavior?

install.sh outputs warnings:

install.sh: 52: [[: not found
install.sh: 57: [: unexpected operator
install.sh: 95: [[: not found

What is the expected behavior?
The installer should run without warnings.

Steps to Reproduce

  1. curl -L -o install.sh https://yarnpkg.com/install.sh
  2. chmod +x install.sh && ./install.sh

Environment

  • Node Version: n/a
  • Yarn v1 Version: 1.19.2
  • OS and version: any os with dash shell
@Daniel15
Copy link
Member

Daniel15 commented Feb 5, 2020

Would you like to submit a PR to fix this?

@Daniel15 Daniel15 transferred this issue from yarnpkg/yarn Feb 5, 2020
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

No branches or pull requests

2 participants