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.sh: line 9: [[: 14.4: syntax error: invalid arithmetic operator (error token is ".4") #25

Open
Ptival opened this issue Apr 30, 2019 · 0 comments

Comments

@Ptival
Copy link

Ptival commented Apr 30, 2019

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

@Ptival Ptival changed the title Cask 'karabiner' is unavailable: No Cask with this name exists. Did you mean “karabiner-elements”? install.sh: line 9: [[: 14.4: syntax error: invalid arithmetic operator (error token is ".4") Apr 30, 2019
willismonroe added a commit to willismonroe/osx-compose-key that referenced this issue Jun 25, 2019
Previous comparison couldn't handle decimal system version numbers, this should fix that.
willismonroe added a commit to willismonroe/osx-compose-key that referenced this issue Jun 25, 2019
The previous version check couldn't deal with decimal places and was failing, this change should fix that.
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