diff options
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r-- | meta/classes/utils.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index b58c22771f..e6f7f95d80 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass | |||
@@ -202,6 +202,9 @@ create_cmdline_shebang_wrapper () { | |||
202 | argument="$(sed -ne 's/^#! *//p;q' $cmd)" | 202 | argument="$(sed -ne 's/^#! *//p;q' $cmd)" |
203 | # strip the shebang from the real script as we do not want it to be usable anyway | 203 | # strip the shebang from the real script as we do not want it to be usable anyway |
204 | tail -n +2 $cmd > $cmd.real | 204 | tail -n +2 $cmd > $cmd.real |
205 | chown --reference=$cmd $cmd.real | ||
206 | chmod --reference=$cmd $cmd.real | ||
207 | rm -f $cmd | ||
205 | cmdname=$(basename $cmd) | 208 | cmdname=$(basename $cmd) |
206 | dirname=$(dirname $cmd) | 209 | dirname=$(dirname $cmd) |
207 | cmdoptions=$@ | 210 | cmdoptions=$@ |