mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-16 22:05:23 +01:00
added function to deal with new xpath tool in Big Sur
This commit is contained in:
@@ -204,6 +204,16 @@ downloadURLFromGit() { # $1 git user name, $2 git repo name
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
xpath() {
|
||||||
|
# the xpath tool changes in Big Sur and now requires the `-e` option
|
||||||
|
if [[ $(sw_vers -buildVersion) > "20A" ]]; then
|
||||||
|
/usr/bin/xpath -e $@
|
||||||
|
else
|
||||||
|
/usr/bin/xpath $@
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
getAppVersion() {
|
getAppVersion() {
|
||||||
# get all apps matching name
|
# get all apps matching name
|
||||||
applist=$(mdfind "kind:application $appName" -0 )
|
applist=$(mdfind "kind:application $appName" -0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user