download_mirror.sh fails due to a bad path containing
‘stx-tools/centos-mirror-tools/config/centos/flockflock’
The path is constructed, and the trigger is when an EOL is missing
from a centos_build_layer.cfg file, causing 'cat' to merge the last
line of the offending file with the first line of the next file.
Switch 'cat' to 'grep', which will always ensure an EOL is present.
Along the way, we can filter out empty lines and comments.
Closes-bug: 1926987
Signed-off-by: Scott Little <scott.little@windriver.com>
(cherry picked from commit b96ebc83d8)
(cherry picked from commit 7b5f3a45e6)
Change-Id: I79a96ddc8333a2465ba03b1d2abbad9a8b3b58f0