@@ -4,36 +4,36 @@ set -eo pipefail
4
4
5
5
set -x
6
6
7
- APP_ROOT=${APP_ROOT:-/ workspace }
7
+ APP_ROOT=${APP_ROOT:-/ opt / app-root }
8
8
9
9
# Pre-clone repositories defined in JUPYTER_PRELOAD_REPOS
10
10
if [ -n " ${JUPYTER_PRELOAD_REPOS} " ]; then
11
- for repo in ` echo ${JUPYTER_PRELOAD_REPOS} | tr ' ,' ' ' ` ; do
11
+ for repo in $( echo " ${JUPYTER_PRELOAD_REPOS} " | tr ' ,' ' ' ) ; do
12
12
# Check for the presence of "@branch" in the repo string
13
- REPO_BRANCH=$( echo ${repo} | cut -s -d' @' -f2)
13
+ REPO_BRANCH=$( echo " ${repo} " | cut -s -d' @' -f2)
14
14
if [[ -n ${REPO_BRANCH} ]]; then
15
15
# Remove the branch from the repo string and convert REPO_BRANCH to git clone arg
16
- repo=$( echo ${repo} | cut -d' @' -f1)
16
+ repo=$( echo " ${repo} " | cut -d' @' -f1)
17
17
REPO_BRANCH=" -b ${REPO_BRANCH} "
18
18
fi
19
19
echo " Checking if repository $repo exists locally"
20
- REPO_DIR=$( basename ${repo} )
20
+ REPO_DIR=$( basename " ${repo} " )
21
21
if [ -d " ${REPO_DIR} " ]; then
22
- pushd ${REPO_DIR}
22
+ pushd " ${REPO_DIR} "
23
23
# Do nothing if the repo already exists
24
24
echo " The ${repo} has already been cloned"
25
25
:
26
26
popd
27
27
else
28
- GIT_SSL_NO_VERIFY=true git clone ${repo} ${REPO_DIR} ${REPO_BRANCH}
28
+ GIT_SSL_NO_VERIFY=true git clone " ${repo} " " ${REPO_DIR} " " ${REPO_BRANCH} "
29
29
fi
30
30
done
31
31
fi
32
32
33
33
if [ -n " ${NOTEBOOK_SAMPLES_LINK} " ]; then
34
- for link in ` echo ${NOTEBOOK_SAMPLES_LINK} | tr ' ,' ' ' ` ; do
35
- wget ${link}
34
+ for link in $( echo " ${NOTEBOOK_SAMPLES_LINK} " | tr ' ,' ' ' ) ; do
35
+ wget " ${link} "
36
36
done
37
37
fi
38
38
39
- ${APP_ROOT} /bin/start-notebook.sh " $@ "
39
+ " ${APP_ROOT} " /bin/start-notebook.sh " $@ "
0 commit comments