Skip to content

Commit

Permalink
fix(deps): Abort script on error
Browse files Browse the repository at this point in the history
Allows us to remove some '&&' chaining while keeping well-defined
behaviour
  • Loading branch information
athewsey committed Aug 8, 2023
1 parent 59397ca commit 4974544
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions download-dependencies.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4974544

Please sign in to comment.