Skip to content

Commit

Permalink
Set USER as NB_USER if unset
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinnarayanan committed Aug 17, 2023
1 parent 2a1754b commit 61bf025
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/jupyter/environment_variables.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# This file is sourced once in jupyterlab_startup.sh and once in ~/.bashrc so we get the same environment variables in the jupyter and in the desktop environment
if [[ -z "$NB_USER" ]]; then
NB_USER=$USER
if [[ -z "${NB_USER}" ]]; then
NB_USER=${USER}
fi

if [[ -z "${USER}" ]]; then
USER=${NB_USER}
fi

if [ -f '/usr/share/module.sh' ]; then
Expand Down

0 comments on commit 61bf025

Please sign in to comment.