use `/usr/libexec/PlistBuddy` in `list_id`-scripts (#22592)
This commit is contained in:
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 () {
|
||||
|
|
Loading…
Reference in New Issue