mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
use /usr/libexec/PlistBuddy in list_id-scripts (#22592)
This commit is contained in:
committed by
Josh Hagins
parent
fe4dc6f241
commit
6dad86849d
@@ -26,9 +26,7 @@ xargs="$(/usr/bin/which gxargs || printf '/usr/bin/xargs')"
|
||||
|
||||
bundle_id_source_1 () {
|
||||
/usr/bin/find "$kextdir" -name Info.plist -print0 | \
|
||||
"$xargs" -0 /usr/bin/plutil -convert xml1 -o - -- 2> /dev/null | \
|
||||
/usr/bin/perl -0777 -ne \
|
||||
'while (m{<key>\s*CFBundleIdentifier\s*</key>\s*<string>([^<]+?)</string>}sg) { print "$1\n" }'
|
||||
"$xargs" -0 -I {} /usr/libexec/PlistBuddy {} -c 'Print :CFBundleIdentifier'
|
||||
}
|
||||
|
||||
merge_sources () {
|
||||
|
||||
@@ -27,9 +27,7 @@ xargs="$(/usr/bin/which gxargs || printf '/usr/bin/xargs')"
|
||||
|
||||
bundle_id_source_1 () {
|
||||
/usr/bin/find "$appdir" -name Info.plist -print0 | \
|
||||
"$xargs" -0 /usr/bin/plutil -convert xml1 -o - -- 2> /dev/null | \
|
||||
/usr/bin/perl -0777 -ne \
|
||||
'while (m{<key>\s*CFBundleIdentifier\s*</key>\s*<string>([^<]+?)</string>}sg) { print "$1\n" }'
|
||||
"$xargs" -0 -I {} /usr/libexec/PlistBuddy {} -c 'Print :CFBundleIdentifier'
|
||||
}
|
||||
|
||||
merge_sources () {
|
||||
|
||||
@@ -32,9 +32,7 @@ bundle_id_source_1 () {
|
||||
|
||||
bundle_id_source_2 () {
|
||||
/usr/bin/find "$pkgdir" -name Info.plist -print0 | \
|
||||
"$xargs" -0 /usr/bin/plutil -convert xml1 -o - -- 2> /dev/null | \
|
||||
/usr/bin/perl -0777 -ne \
|
||||
'while (m{<key>\s*CFBundleIdentifier\s*</key>\s*<string>([^<]+?)</string>}sg) { print "$1\n" }'
|
||||
"$xargs" -0 -I {} /usr/libexec/PlistBuddy {} -c 'Print :CFBundleIdentifier'
|
||||
}
|
||||
|
||||
merge_sources () {
|
||||
|
||||
Reference in New Issue
Block a user