From: Oleksiy Obitotskyy yIEf0zt.mo Date: Tue, 19 Jan 2021 13:02:59 +0000 (-0800) Subject: toolchain-shar-relocate.sh: Fix handling files with colons X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~9014 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50d2ed0689f1aed6f33b4992d37e2e991c99eb07;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toolchain-shar-relocate.sh: Fix handling files with colons Files could contain colons in name and we should not use colons (':') as field separator. E.g. perl/python man pages packages. Signed-off-by: Oleksiy Obitotskyy Signed-off-by: Richard Purdie --- diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh index 94d288ce053..54337412966 100644 --- a/meta/files/toolchain-shar-relocate.sh +++ b/meta/files/toolchain-shar-relocate.sh @@ -55,7 +55,7 @@ fi for replace in "$target_sdk_dir -maxdepth 1" "$native_sysroot"; do $SUDO_EXEC find $replace -type f done | xargs -n100 file | grep ":.*\(ASCII\|script\|source\).*text" | \ - awk -F':' '{printf "\"%s\"\n", $1}' | \ + awk -F': ' '{printf "\"%s\"\n", $1}' | \ grep -Fv -e "$target_sdk_dir/environment-setup-" \ -e "$target_sdk_dir/relocate_sdk" \ -e "$target_sdk_dir/post-relocate-setup" \