Skip to content

Commit 1a753fd

Browse files
committed
Fix gitCloneStack
1 parent 5c15678 commit 1a753fd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/workshop-setup.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ function usage() {
3636
# Ensures the Appsody stacks repo is cloned and up-to-date
3737
#
3838
function gitCloneStack {
39-
rm -rf "${stacks_dir}"
40-
mkdir -p ${workshop_dir}
41-
cd "${workshop_dir}"
42-
git clone ${git_repo_stacks}
39+
if [ ! -e "${stacks_dir}" ]; then
40+
mkdir -p ${workshop_dir}
41+
cd "${workshop_dir}"
42+
git clone ${git_repo_stacks}
43+
fi
4344
}
4445

4546

0 commit comments

Comments
 (0)