Don't pipe the list of binaries through uniq.

It seems to be overflowing a buffer and truncating output with Python 3,
plus it's being fed a single line only so isn't actually doing anything.
This commit is contained in:
Dave Page
2018-06-14 17:03:16 +01:00
parent 1d322e2cd9
commit 96544424dd

View File

@@ -33,7 +33,7 @@ function CompleteSingleApp() {
pushd "$bundle" > /dev/null
#We skip nested apps here - those are treated specially
todo=$(file `find ./ -perm +0111 ! -type d ! -path "*.app/*" ! -name "*.app"` | grep -E "Mach-O 64-bit" | awk -F ':| ' '{ORS=" "; print $1}' | uniq)
todo=$(file `find ./ -perm +0111 ! -type d ! -path "*.app/*" ! -name "*.app"` | grep -E "Mach-O 64-bit" | awk -F ':| ' '{ORS=" "; print $1}')
echo "App: $tag: Found executables: $todo"
while test "$todo" != ""; do