Skip to content

Commit

Permalink
Merge pull request #2100 from jedahan/smarter-launchd-install
Browse files Browse the repository at this point in the history
More robust version checking
  • Loading branch information
whyrusleeping committed Mar 2, 2016
2 parents a551991 + 77bfa9d commit 22fcd18
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 22fcd18

Please sign in to comment.