Squashed 'deps/nostalgia/' changes from 6837a055..98ddb08a
98ddb08a [nostalgia] Cleanup 8d1701b0 [turbine/glfw] Ensure window opens with a standard mandatory refresh period 1048e522 [imgui] Make ImGui not an object lib ee59da4a [glad] Make glad not an object lib 1ba64cb5 Merge commit '07610a5af2aaaac9cfcdcf8359b33f7df40d46cd' 462bebf6 [nostalgia/core] Cleanup unused function declaration e3f84c4e [studio] Make first tab not draw before selected tab when window opens git-subtree-dir: deps/nostalgia git-subtree-split: 98ddb08abd68d2d31864fb44d240b2d79a0022c1
This commit is contained in:
23
util/devenv/entrypoint.sh
Executable file
23
util/devenv/entrypoint.sh
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# script from Deni Bertovic
|
||||
# https://denibertovic.com/posts/handling-permissions-with-docker-volumes/
|
||||
|
||||
# Add local user
|
||||
# Either use the LOCAL_USER_ID if passed in at runtime or
|
||||
# fallback
|
||||
|
||||
USER_ID=${LOCAL_USER_ID:-9001}
|
||||
|
||||
if [[ $(id -u user 2> /dev/null) != $USER_ID ]]; then
|
||||
useradd --shell /bin/bash -u $USER_ID -o -c "" -m user
|
||||
export HOME=/home/user
|
||||
echo "set -o vi" >> $HOME/.bashrc
|
||||
echo "export PATH=\${PATH}:/opt/devkitPro/devkitARM/bin/" >> $HOME/.bashrc
|
||||
echo "export DEVKITPRO=/opt/devkitPro" >> $HOME/.bashrc
|
||||
echo "export DEVKITARM=/opt/devkitPro/devkitARM" >> $HOME/.bashrc
|
||||
echo "export CC=/usr/bin/clang" >> $HOME/.bashrc
|
||||
echo "export CXX=/usr/bin/clang++" >> $HOME/.bashrc
|
||||
fi
|
||||
|
||||
exec "$@"
|
Reference in New Issue
Block a user