Skip to content

Commit

Permalink
add success message
Browse files Browse the repository at this point in the history
  • Loading branch information
master-hax authored Oct 23, 2024
1 parent 6916d21 commit 0f7ca76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/start_global_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
# Usage: ./start_global_shell.sh
################################################################################

# TODO: display success message

if [ "$(readlink /proc/self/ns/mnt)" != "$(readlink /proc/1/ns/mnt)" ]; then
nsenter -t 1 -m -- /bin/sh -c "cd $PWD && /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

0 comments on commit 0f7ca76

Please sign in to comment.