Skip to content

Commit

Permalink
source removed as per the PR comment and added line with version
Browse files Browse the repository at this point in the history
  • Loading branch information
vtaws committed Dec 19, 2024
1 parent 49083f2 commit 6231a46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/build_lambda_layer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# This script builids a lambda layer. Outpits relative path of layer zip.
# This script builds a lambda layer. Outputs relative path of layer zip.
export CID_VERSION=$(python3 -c "from cid import _version;print(_version.__version__)")
rm -rf build

Expand Down
6 changes: 3 additions & 3 deletions assets/publish_lambda_layer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

# First build layer
layer=$(./assets/build_lambda_layer.sh)
# Source the version from the previous script execution
source ./assets/build_lambda_layer.sh
# Source the version
export CID_VERSION=$(python3 -c "from cid import _version;print(_version.__version__)")


# Then publish on s3
Expand All @@ -26,7 +26,7 @@ aws cloudformation list-stack-instances \
if [ $? -ne 0 ]; then
echo "Error: $output"
else
echo "Uploaded successfuly"
echo "Uploaded successfully"
fi
done

Expand Down

0 comments on commit 6231a46

Please sign in to comment.