mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
populate_sdk_base: fix bashism
Only the printf bash builtin knows about %q format option for escaping spaces. The coreutils version doesn't. Unfortunately, neither dash nor sh have a printf builtin. So, escape the spaces using sed. [YOCTO #4811] (From OE-Core rev: 6ac06a65ce52d4c123da53f115c84cb0a98bc18f) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f6538c3b64
commit
92d9ce39b6
@@ -181,7 +181,7 @@ else
|
||||
echo "$target_sdk_dir"
|
||||
fi
|
||||
|
||||
eval target_sdk_dir=$(printf "%q" "$target_sdk_dir")
|
||||
eval target_sdk_dir=$(echo "$target_sdk_dir"|sed 's/ /\\ /g')
|
||||
if [ -d "$target_sdk_dir" ]; then
|
||||
target_sdk_dir=$(cd "$target_sdk_dir"; pwd)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user