mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 18:48:36 -07:00
Another fix to mdfind line in Mac scripts.
This commit is contained in:
parent
3482d836ae
commit
68ddba60a3
3 changed files with 7 additions and 6 deletions
|
@ -23,7 +23,7 @@ if [ $dryRun -gt 0 ]; then
|
|||
fi
|
||||
|
||||
zthome="/Library/Application Support/ZeroTier/One"
|
||||
ztapp=`mdfind kMDItemCFBundleIdentifier == 'com.zerotier.ZeroTierOne' | sort | head -n 1`
|
||||
ztapp=`mdfind kMDItemCFBundleIdentifier == 'com.zerotier.ZeroTierOne' | grep -E '.+[.]app$' | sort | head -n 1`
|
||||
if [ ! -d "$ztapp" ]; then
|
||||
ztapp="/Applications/ZeroTier One.app"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue