From 7c39f87aae5d7fca12486f0e3036714a0eb089f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 20 Mar 2019 13:29:07 +0100 Subject: [PATCH] instant-sysroot-native.bbclass: handle filenames with spaces properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- classes/instant-sysroot-native.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/instant-sysroot-native.bbclass b/classes/instant-sysroot-native.bbclass index 015ef2b..95e2ec4 100644 --- a/classes/instant-sysroot-native.bbclass +++ b/classes/instant-sysroot-native.bbclass @@ -22,9 +22,9 @@ INSTANTPOPULATE_class-native = "instant_populate_sysroot" INSTANTPOPULATE_class-cross = "instant_populate_sysroot" instant_populate_sysroot () { - for file in `find ${SYSROOT_DESTDIR}${STAGING_DIR_NATIVE} -type f -o -type l`; do + find "${SYSROOT_DESTDIR}${STAGING_DIR_NATIVE}" -type f -o -type l | while read file; do alignedpath=`echo "$file" | sed 's:${SYSROOT_DESTDIR}${STAGING_DIR_NATIVE}::'` - targetdir=`dirname ${INSTANT_NATIVE_PATH}/${alignedpath}` + targetdir=`dirname "${INSTANT_NATIVE_PATH}/${alignedpath}"` mkdir -p "$targetdir" cp -fld "${file}" "${targetdir}" done