mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-30 06:13:11 +01:00
Merge pull request #200 from Installomator/Change-in-finding-installed-apps
Look in /Application and Utilities first
This commit is contained in:
@@ -337,14 +337,15 @@ getAppVersion() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# get all apps matching name
|
# get app from /Applications or find using Spotify
|
||||||
applist=$(mdfind "kind:application $appName" -0 )
|
if [[ -d "/Applications/$appName" ]]; then
|
||||||
if [[ $applist = "" ]]; then
|
applist="/Applications/$appName"
|
||||||
printlog "Spotlight not returning any app, trying manually in /Applications."
|
elif [[ -d "/Applications/Utilities/$appName" ]]; then
|
||||||
if [[ -d "/Applications/$appName" ]]; then
|
applist="/Applications/Utilities/$appName"
|
||||||
applist="/Applications/$appName"
|
else
|
||||||
fi
|
applist=$(mdfind "kind:application $appName" -0 )
|
||||||
fi
|
fi
|
||||||
|
printlog "App(s) found: ${applist}"
|
||||||
|
|
||||||
appPathArray=( ${(0)applist} )
|
appPathArray=( ${(0)applist} )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user