build: fix STAGING_DIR cleaning when filenames contain spaces
authorJeffery To <jeffery.to@gmail.com>
Wed, 15 May 2019 14:20:17 +0000 (22:20 +0800)
committerPetr Štetiar <ynezz@true.cz>
Fri, 17 May 2019 19:41:43 +0000 (21:41 +0200)
commit3fcb70927597bad2896c6b39b2bdd2bb4c371bf3
treeadc352f124ee7de93841204aadb6d3fd1197e633
parentfc553c7e4c8eea898aaa2086574b7e8737f6d26c
build: fix STAGING_DIR cleaning when filenames contain spaces

When looping through a package's STAGING_FILES_LIST (a list of
file/directory paths delimited by newlines), if the path contains
spaces, then the path will be split by the while loops, and the
file/directory will not be deleted/removed.

This sets the internal field separator to the newline only so that the
entire path is considered when deleting/removing.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
scripts/clean-package.sh