summaryrefslogtreecommitdiffstats
path: root/meta/classes/terminal.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/terminal.bbclass')
-rw-r--r--meta/classes/terminal.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index a27e10c6ec..73e765d57a 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -25,7 +25,8 @@ def emit_terminal_func(command, envdata, d):
25 bb.utils.mkdirhier(os.path.dirname(runfile)) 25 bb.utils.mkdirhier(os.path.dirname(runfile))
26 26
27 with open(runfile, 'w') as script: 27 with open(runfile, 'w') as script:
28 script.write('#!/bin/sh -e\n') 28 script.write('#!/usr/bin/env %s\n' % d.getVar('SHELL'))
29 script.write('set -e\n')
29 bb.data.emit_func(cmd_func, script, envdata) 30 bb.data.emit_func(cmd_func, script, envdata)
30 script.write(cmd_func) 31 script.write(cmd_func)
31 script.write("\n") 32 script.write("\n")