This function is a wrapper around "shlex.quote()" and can be used in
"${@...}" context where shlex (or pipes, which provides similar
functionality) is unavailable.Signed-off-by: Enrico Scholz <[email protected]> --- meta/lib/oe/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 3a496090f3..cedd053d36 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -490,3 +490,6 @@ class ImageQAFailed(bb.build.FuncFailed): return msg +def sh_quote(string): + import shlex + return shlex.quote(string) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
