1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-25 06:58:18 +08:00

Merge pull request #2100 from jedahan/smarter-launchd-install

More robust version checking
This commit is contained in:
Jeromy Johnson
2016-03-01 23:19:07 -08:00

View File

@ -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