protect against space in input line

although it should not be there
This commit is contained in:
Roland Walker
2014-01-28 10:13:20 -05:00
parent a45c118807
commit 04dc9d2c86
+2 -1
View File
@@ -20,7 +20,8 @@ _list_ids_in_pkg () {
/usr/bin/sort | /usr/bin/uniq | \
/usr/bin/egrep -v '^com\.apple\.' | \
/usr/bin/egrep -v 'sparkle\.finish-installation$' | \
/usr/bin/xargs -I{} -n1 /bin/bash -c \
/usr/bin/perl -pe 's{\n}{\000}sg' | \
/usr/bin/xargs -0 -I{} -n1 /bin/bash -c \
'printf "{}"; /usr/sbin/pkgutil --pkg-info "{}" >/dev/null 2>&1 && printf " (+)"; printf "\n"'
}