From 75c5a93da2d7118482ea3e00990fb45ec4d82c89 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 1 Oct 2010 11:03:44 -0700 Subject: create_wrapper: check syntax of arguments Signed-off-by: Chris Larson --- classes/utils.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes') diff --git a/classes/utils.bbclass b/classes/utils.bbclass index 9a9c7b5ab7..b62bd119a3 100644 --- a/classes/utils.bbclass +++ b/classes/utils.bbclass @@ -459,6 +459,10 @@ create_wrapper () { cmd=$1 shift + + # run echo via env to test syntactic validity of the variable arguments + env $@ echo "Generating wrapper script for $cmd" + mv $cmd $cmd.real cmdname=`basename $cmd`.real cat <$cmd -- cgit 1.2.3-korg