hide error outputs from plutil

This commit is contained in:
Roland Walker
2014-10-21 07:31:18 -04:00
parent 55575bf6a1
commit 73bc4fc532
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -26,7 +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 - -- | \
"$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" }'
}
+1 -1
View File
@@ -27,7 +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 - -- | \
"$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" }'
}
+1 -1
View File
@@ -32,7 +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 - -- | \
"$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" }'
}
+1 -1
View File
@@ -37,7 +37,7 @@ die () {
xml_source_1 () {
if /usr/bin/xattr -p "$attribute_1" "$file_arg" > /dev/null 2>&1; then
/usr/bin/xattr -p "$attribute_1" "$file_arg" | /usr/bin/xxd -r -p | /usr/bin/plutil -convert xml1 -o - -
/usr/bin/xattr -p "$attribute_1" "$file_arg" | /usr/bin/xxd -r -p | /usr/bin/plutil -convert xml1 -o - - 2> /dev/null
fi
}