Skip to content

Bash test nested incorrectly; leads to syntax error #802

Description

@bicobus

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions