diff --git a/assets/build_lambda_layer.sh b/assets/build_lambda_layer.sh index a1bb292f..c0273600 100755 --- a/assets/build_lambda_layer.sh +++ b/assets/build_lambda_layer.sh @@ -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 diff --git a/assets/publish_lambda_layer.sh b/assets/publish_lambda_layer.sh index 4f7e0155..dd6d6e92 100755 --- a/assets/publish_lambda_layer.sh +++ b/assets/publish_lambda_layer.sh @@ -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 @@ -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