Skip to content

Commit

Permalink
More robust version checking
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jonathan Dahan <jonathan@jonathan.is>
  • Loading branch information
Jonathan Dahan committed Feb 1, 2016
1 parent 62ba5eb commit 77bfa9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/launchd/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [ $? ]; then
fi

echo Loading ipfs-daemon
if [[ `sw_vers -productVersion` == 10.1* ]]; then
if (( `sw_vers -productVersion | cut -d'.' -f2` > 9 )); then
sudo chown root "$dest_dir/$plist"
sudo launchctl bootstrap system "$dest_dir/$plist"
else
Expand Down

0 comments on commit 77bfa9d

Please sign in to comment.