Skip to content

Commit

Permalink
fix changing directory in start_global_shell.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
master-hax authored Oct 23, 2024
1 parent 46bc8eb commit 6916d21
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/start_global_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
# 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 && /bin/sh"
else
echo 'already running in global mount namespace'
fi

0 comments on commit 6916d21

Please sign in to comment.