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

Install script uses Bashisms, but uses /bin/sh as interpreter #946

Open
sersorrel opened this issue Apr 19, 2019 · 0 comments
Open

Install script uses Bashisms, but uses /bin/sh as interpreter #946

sersorrel opened this issue Apr 19, 2019 · 0 comments

Comments

@sersorrel
Copy link

The install script says it's a POSIX shell script:

#!/bin/sh

but uses many Bashisms including [[ and read -n:

if [[ -z "$(command -v gpg)" ]]; then

if [[ $YARN_PROFILE == *"fish"* ]]; then

read -p "$1 [y/N] " -n 1 -r

if [[ ! $REPLY =~ ^[Yy]$ ]]

This means that it doesn't work on any Linux distribution which uses dash (or anything else that's not Bash) to provide /bin/sh, which includes e.g. Ubuntu.

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

1 participant