]> code.ossystems Code Review - openembedded-core.git/commitdiff
toolchain-shar-relocate.sh: Fix handling files with colons
authorOleksiy Obitotskyy yIEf0zt.mo <oobitots@cisco.com>
Tue, 19 Jan 2021 13:02:59 +0000 (05:02 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jan 2021 22:46:11 +0000 (22:46 +0000)
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 <oobitots@cisco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/files/toolchain-shar-relocate.sh

index 94d288ce05310062f1ae32799710144522b200c4..54337412966c81f20fd8a7926f698bc923bb570a 100644 (file)
@@ -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" \