diff --git a/scripts/start_global_shell.sh b/scripts/start_global_shell.sh index 64849ed..1fe673e 100644 --- a/scripts/start_global_shell.sh +++ b/scripts/start_global_shell.sh @@ -6,11 +6,8 @@ # Usage: ./start_global_shell.sh ################################################################################ -# TODO: return to current directory -# TODO: display success message - if [ "$(readlink /proc/self/ns/mnt)" != "$(readlink /proc/1/ns/mnt)" ]; then - nsenter -t 1 -m -- /bin/sh + nsenter -t 1 -m -- /bin/sh -c "cd $PWD && echo 'now running in global mount namespace' && /bin/sh" else echo 'already running in global mount namespace' fi