use user's shell instead of hardwired "/bin/sh" (android needs this)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
86cf0364bd
commit
681efe20d3
12 changed files with 38 additions and 28 deletions
|
@ -65,10 +65,7 @@ int script_main(int argc UNUSED_PARAM, char **argv)
|
|||
if (!(opt & OPT_q)) {
|
||||
printf("Script started, file is %s\n", fname);
|
||||
}
|
||||
shell = getenv("SHELL");
|
||||
if (shell == NULL) {
|
||||
shell = DEFAULT_SHELL;
|
||||
}
|
||||
shell = get_shell_name();
|
||||
|
||||
pty = xgetpty(pty_line);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue