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

Bash test nested incorrectly; leads to syntax error #802

Open
bicobus opened this issue Jul 22, 2024 · 0 comments
Open

Bash test nested incorrectly; leads to syntax error #802

bicobus opened this issue Jul 22, 2024 · 0 comments
Labels

Comments

@bicobus
Copy link

bicobus commented Jul 22, 2024

Offending line:

if [ "$distro" == "Mac OS X" || "$distro" == "macOS" ]; then

[ is an alias for test, as such it doesn't support logical OR operations. The line should be rewritten to use [[ instead.

@KittyKatt KittyKatt added the bug label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants