From 04dc9d2c8658c7c536b227d23daeb8e1b1094569 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Tue, 28 Jan 2014 10:13:20 -0500 Subject: [PATCH] protect against space in input line although it should not be there --- developer/bin/list_ids_in_pkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/developer/bin/list_ids_in_pkg b/developer/bin/list_ids_in_pkg index 0154b9d251..ea38ec78c5 100755 --- a/developer/bin/list_ids_in_pkg +++ b/developer/bin/list_ids_in_pkg @@ -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"' }