diff --git a/download-dependencies.sh b/download-dependencies.sh index d449ad7a..d71d3f9d 100755 --- a/download-dependencies.sh +++ b/download-dependencies.sh @@ -1,12 +1,13 @@ #!/bin/sh -echo "Creating directory" -mkdir -p ./dependencies && \ +set -e + +echo "(Re)-creating directory" +rm -rf ./dependencies +mkdir ./dependencies cd ./dependencies -# Removing prior dependencies -rm -rf * echo "Downloading dependencies" -curl -sS https://d2eo22ngex1n9g.cloudfront.net/Documentation/SDK/bedrock-python-sdk.zip > sdk.zip && \ +curl -sS https://d2eo22ngex1n9g.cloudfront.net/Documentation/SDK/bedrock-python-sdk.zip > sdk.zip echo "Unpacking dependencies" # (SageMaker Studio system terminals don't have `unzip` utility installed) if command -v unzip &> /dev/null