diff options
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/script.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/util-linux/script.c b/util-linux/script.c index b9317fc..47efc45 100644 --- a/util-linux/script.c +++ b/util-linux/script.c @@ -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); |