adding shellcheck fixes

This commit is contained in:
rigzba21
2021-08-06 13:02:16 -04:00
parent 437e736c7d
commit 511ca22321

View File

@@ -54,7 +54,8 @@ if [ "$(id -u)" == 0 ] ; then
# (it could be mounted, and we shouldn't create it if it already exists)
if [[ ! -e "/home/${NB_USER}" ]]; then
echo "Relocating home dir to /home/${NB_USER}"
mkdir "/home/${NB_USER}" && rsync -avx /home/jovyan "/home/${NB_USER}" || ln -s /home/jovyan "/home/${NB_USER}"
mkdir "/home/${NB_USER}"
rsync -avx /home/jovyan "/home/${NB_USER}" || ln -s /home/jovyan "/home/${NB_USER}"
fi
# if workdir is in /home/jovyan, cd to /home/${NB_USER}
if [[ "${PWD}/" == "/home/jovyan/"* ]]; then