Skip to content

Commit

Permalink
Updated version check (Fixes gnarf#25)
Browse files Browse the repository at this point in the history
Previous comparison couldn't handle decimal system version numbers, this should fix that.
  • Loading branch information
willismonroe committed Jun 25, 2019
1 parent bf307c8 commit 5b5b6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ fi

# Copy Karabiner settings.
echo "Copying Karabiner settings..."
if [[ $OSX_VERSION -ge 12 ]]; then
mkdir -p ~/.karabiner.d/configuration
if (( $(echo "$OSX_VERSION > 12" | bc -l) )); then
mkdir -p ~/.karabiner.d/configuration
cp karabiner.json ~/.karabiner.d/configuration/karabiner.json
else
mkdir -p ~/Library/Application\ Support/Karabiner
Expand Down

0 comments on commit 5b5b6e0

Please sign in to comment.