diff options
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 0f2a484091..80e90e8777 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -259,11 +259,11 @@ create_cmdline_wrapper () { | |||
259 | echo "Generating wrapper script for $cmd" | 259 | echo "Generating wrapper script for $cmd" |
260 | 260 | ||
261 | mv $cmd $cmd.real | 261 | mv $cmd $cmd.real |
262 | cmdname=`basename $cmd`.real | 262 | cmdname=`basename $cmd` |
263 | cat <<END >$cmd | 263 | cat <<END >$cmd |
264 | #!/bin/bash | 264 | #!/bin/bash |
265 | realpath=\`readlink -fn \$0\` | 265 | realpath=\`readlink -fn \$0\` |
266 | exec -a $cmd \`dirname \$realpath\`/$cmdname $@ "\$@" | 266 | exec -a \`dirname \$realpath\`/$cmdname \`dirname \$realpath\`/$cmdname.real $@ "\$@" |
267 | END | 267 | END |
268 | chmod +x $cmd | 268 | chmod +x $cmd |
269 | } | 269 | } |