Skip to content

Commit 62ca910

Browse files
authored
fix changing directory in start_global_shell.sh (#25)
* fix changing directory in start_global_shell.sh * add success message
1 parent 7bf224c commit 62ca910

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scripts/start_global_shell.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
# Usage: ./start_global_shell.sh
77
################################################################################
88

9-
# TODO: return to current directory
10-
# TODO: display success message
11-
129
if [ "$(readlink /proc/self/ns/mnt)" != "$(readlink /proc/1/ns/mnt)" ]; then
13-
nsenter -t 1 -m -- /bin/sh
10+
nsenter -t 1 -m -- /bin/sh -c "cd $PWD && echo 'now running in global mount namespace' && /bin/sh"
1411
else
1512
echo 'already running in global mount namespace'
1613
fi

0 commit comments

Comments
 (0)