Skip to content

install.sh: line 9: [[: 14.4: syntax error: invalid arithmetic operator (error token is ".4") #25

@Ptival

Description

@Ptival

Using /bin/sh and /bin/zsh, I get the mentioned error.

echo $(sw_vers -productVersion | sed -E "s/^[0-9]+\.([0-9]+)/\\1/")
returns
14.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions