File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 43
43
filters : |
44
44
unity_datascience:
45
45
- 'unity_datascience/**'
46
+ - 'common/**'
46
47
- '.github/workflows/**'
47
48
- '.env'
48
49
build :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ skel_src_dir=/etc/unity-sds/jupyter_skel
4
+ user_dst_dir=/home/jovyan
5
+
6
+ # Find files and directories in $skel_src_dir at the root level
7
+ mapfile -t skel_config_fns < <( find $skel_src_dir -mindepth 1 -maxdepth 1 -printf ' %f\n' )
8
+
9
+ # Only copy files if the destination in the Jupyter home directory does not exist
10
+ for skel_fn in " ${skel_config_fns[@]} " ; do
11
+ if [ -e " ${skel_src_dir} /${skel_fn} " ] && [ ! -e " ${user_dst_dir} /${skel_fn} " ]; then
12
+ cp -a " ${skel_src_dir} /${skel_fn} " " ${user_dst_dir} /${skel_fn} "
13
+ fi
14
+ done
You can’t perform that action at this time.
0 commit comments