diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmd/shell.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cmd/shell.sh b/lib/cmd/shell.sh index c2570e0..c6e0906 100644 --- a/lib/cmd/shell.sh +++ b/lib/cmd/shell.sh @@ -40,11 +40,11 @@ cmd_shell_main() session_begin "${root}" . : session_dir="/prokit/sessions/$(session_id)" if [ ${#} -eq 0 ]; then - chroot "${root}" /bin/sh -c "cd '${session_dir}'; /bin/sh" + session_exec /bin/sh printf '\n' info "$(get_msg 'cmd_shell_exiting')" else - chroot "${root}" /bin/sh -c "cd '${session_dir}'; ${*}" + session_exec "${@}" fi session_end } |