Skip to content

Commit 4a6a153

Browse files
authored
Merge pull request #1466 from twalcari/patch-4
Also copy hidden files/directories
2 parents 2ddf41a + 93a6865 commit 4a6a153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base-notebook/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if [ "$(id -u)" == 0 ] ; then
5555
if [[ ! -e "/home/${NB_USER}" ]]; then
5656
echo "Copying home dir to /home/${NB_USER}"
5757
mkdir "/home/${NB_USER}"
58-
cp -R /home/jovyan "/home/${NB_USER}" || ln -s /home/jovyan "/home/${NB_USER}"
58+
cp -a /home/jovyan/. "/home/${NB_USER}/" || ln -s /home/jovyan "/home/${NB_USER}"
5959
fi
6060
# if workdir is in /home/jovyan, cd to /home/${NB_USER}
6161
if [[ "${PWD}/" == "/home/jovyan/"* ]]; then

0 commit comments

Comments
 (0)