From 511ca22321eea49e99a9050d480e49f31369917c Mon Sep 17 00:00:00 2001 From: rigzba21 Date: Fri, 6 Aug 2021 13:02:16 -0400 Subject: [PATCH] adding shellcheck fixes --- base-notebook/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base-notebook/start.sh b/base-notebook/start.sh index 8b86a604..829d8cea 100755 --- a/base-notebook/start.sh +++ b/base-notebook/start.sh @@ -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