website
website copied to clipboard
yarn install script has issues when running in dash
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
-
curl -L -o install.sh https://yarnpkg.com/install.sh
-
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
Would you like to submit a PR to fix this?