Skip to content

Commit

Permalink
Merge pull request #1466 from twalcari/patch-4
Browse files Browse the repository at this point in the history
Also copy hidden files/directories
  • Loading branch information
mathbunnyru authored Sep 15, 2021
2 parents 2ddf41a + 93a6865 commit 4a6a153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base-notebook/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ "$(id -u)" == 0 ] ; then
if [[ ! -e "/home/${NB_USER}" ]]; then
echo "Copying home dir to /home/${NB_USER}"
mkdir "/home/${NB_USER}"
cp -R /home/jovyan "/home/${NB_USER}" || ln -s /home/jovyan "/home/${NB_USER}"
cp -a /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
Expand Down

0 comments on commit 4a6a153

Please sign in to comment.