Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Check if example directory exists
Browse files Browse the repository at this point in the history
Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com>
  • Loading branch information
TannerGabriel committed Nov 11, 2021
1 parent 0f8c053 commit 5b430b9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion quickstart/multistage-delivery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5b430b9

Please sign in to comment.