support/check-bin-arch: fix for filenames with spaces
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 21 Mar 2017 19:01:25 +0000 (20:01 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 21 Mar 2017 21:14:17 +0000 (22:14 +0100)
commit2f6c5e513cf6688f9343a25ac90138e9ad751eb5
tree825d46ad490f67c0d1a9d0d7a4ebb30c649828e7
parentb60757d9dad3c3248ca0a6f55c6574054a949052
support/check-bin-arch: fix for filenames with spaces

Filenames with spaces will break the current for loop.

Fix that by using a while-read loop, fed with the list of files on
stdin, using process substitution.

Reported-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/check-bin-arch