diff --git a/quickstart/multistage-delivery.sh b/quickstart/multistage-delivery.sh index 2e2fc8f..b1c7bcb 100755 --- a/quickstart/multistage-delivery.sh +++ b/quickstart/multistage-delivery.sh @@ -98,7 +98,17 @@ verify_helm_installation print_headline "Downloading demo resources" echo "This will create a local folder ./examples" echo "git clone https://github.com/keptn/examples --single-branch" -git clone https://github.com/keptn/examples --single-branch + +DIR="./examples" +BOLD='\033[1m' +if [ -d "$DIR" ]; then + # Example directory already exists + echo -e "\n${BOLD}Example directory already exists in folder. Skipping download!" +else + # Example Directory does not exist + git clone https://github.com/keptn/examples --single-branch +fi + cd examples/quickstart print_headline "Create a Keptn project"