Skip to content

Commit 20b1cac

Browse files
Wrap git clone in bash if (aws-samples#375)
**Why:** * Currently fails because of the directory existing **This change addresses the need by:** * closes aws-samples#374
1 parent 04bea8f commit 20b1cac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

01-path-basics/101-start-here/scripts/lab-ide-build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ echo "export AWS_AVAILABILITY_ZONES KOPS_STATE_STORE" >> ~/.bash_profile
4747
# Create SSH key
4848
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
4949

50-
# Download lab Repository
51-
git clone https://github.com/aws-samples/aws-workshop-for-kubernetes
50+
if [ ! -d "aws-workshop-for-kubernetes/" ]; then
51+
# Download lab Repository
52+
git clone https://github.com/aws-samples/aws-workshop-for-kubernetes
53+
fi

0 commit comments

Comments
 (0)