diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-07-17 14:34:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-24 11:52:26 +0100 |
commit | 9c20b0df5f4b962d1a5212d3a2fe815fee8fee4e (patch) | |
tree | fb352420ce4cbc8e7041504bd674931c9f5b7d79 /scripts/oe-run-native | |
parent | b4317d0eadf90bda4c2898c98737a23a08c6df2c (diff) | |
download | poky-9c20b0df5f4b962d1a5212d3a2fe815fee8fee4e.tar.gz |
oe-run-native: ensure arguments get quoted
If you pass quoted arguments to oe-run-native, they need to be passed
as-is to the underlying tool. Putting quotes around $@ ensures each
argument is quoted individually.
(From OE-Core rev: a8758653500a2458cd91bf1aa5eb666ad2b45df4)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-run-native')
-rwxr-xr-x | scripts/oe-run-native | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-run-native b/scripts/oe-run-native index 1131122e68..bbdd1d8c1a 100755 --- a/scripts/oe-run-native +++ b/scripts/oe-run-native | |||
@@ -60,7 +60,7 @@ tool_find=`/usr/bin/which $tool 2>/dev/null` | |||
60 | 60 | ||
61 | if [ -n "$tool_find" ] ; then | 61 | if [ -n "$tool_find" ] ; then |
62 | # add old path to allow usage of host tools | 62 | # add old path to allow usage of host tools |
63 | PATH=$PATH:$OLD_PATH $@ | 63 | PATH=$PATH:$OLD_PATH "$@" |
64 | else | 64 | else |
65 | echo "Error: Unable to find '$tool' in $PATH" | 65 | echo "Error: Unable to find '$tool' in $PATH" |
66 | echo "Error: Have you run 'bitbake $native_recipe -caddto_recipe_sysroot'?" | 66 | echo "Error: Have you run 'bitbake $native_recipe -caddto_recipe_sysroot'?" |