Skip to content

Commit

Permalink
Merge branch 'master' into shivlaks/sfn-tasks-batch-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 3, 2020
2 parents 62f401b + ecb76db commit 37df3f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fetch-dotnet-snk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ function echo_usage() {
echo -e "\tDOTNET_STRONG_NAME_SECRET_ID=<The name (i.e. production/my/key) or ARN of the secret containing the .snk file.>"
}

if [ -z "${DOTNET_STRONG_NAME_ENABLED:-}" ]; then
echo "Environment variable DOTNET_STRONG_NAME_ENABLED is not set. Skipping strong-name signing."
if [ "${DOTNET_STRONG_NAME_ENABLED:-false}" != "true" ]; then
echo "Environment variable DOTNET_STRONG_NAME_ENABLED is not set to true. Skipping strong-name signing."
exit 0
fi

echo "Retrieving SNK..."

apt update -y
apt install jq -y
yum install jq -y

if [ -z "${DOTNET_STRONG_NAME_ROLE_ARN:-}" ]; then
echo "Strong name signing is enabled, but DOTNET_STRONG_NAME_ROLE_ARN is not set."
Expand Down

0 comments on commit 37df3f4

Please sign in to comment.