diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/terminal.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass index 6059ae95e0..a564ee7494 100644 --- a/meta/classes/terminal.bbclass +++ b/meta/classes/terminal.bbclass | |||
| @@ -26,6 +26,9 @@ def emit_terminal_func(command, envdata, d): | |||
| 26 | bb.utils.mkdirhier(os.path.dirname(runfile)) | 26 | bb.utils.mkdirhier(os.path.dirname(runfile)) |
| 27 | 27 | ||
| 28 | with open(runfile, 'w') as script: | 28 | with open(runfile, 'w') as script: |
| 29 | # Override the shell shell_trap_code specifies. | ||
| 30 | # If our shell is bash, we might well face silent death. | ||
| 31 | script.write("#!/bin/bash\n") | ||
| 29 | script.write(bb.build.shell_trap_code()) | 32 | script.write(bb.build.shell_trap_code()) |
| 30 | bb.data.emit_func(cmd_func, script, envdata) | 33 | bb.data.emit_func(cmd_func, script, envdata) |
| 31 | script.write(cmd_func) | 34 | script.write(cmd_func) |
| @@ -37,7 +40,7 @@ def emit_terminal_func(command, envdata, d): | |||
| 37 | def oe_terminal(command, title, d): | 40 | def oe_terminal(command, title, d): |
| 38 | import oe.data | 41 | import oe.data |
| 39 | import oe.terminal | 42 | import oe.terminal |
| 40 | 43 | ||
| 41 | envdata = bb.data.init() | 44 | envdata = bb.data.init() |
| 42 | 45 | ||
| 43 | for v in os.environ: | 46 | for v in os.environ: |
