Skip to content

Commit

Permalink
only explicitely disable line wrapping for non MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: Jianguo Ma <jiangma@microsoft.com>
  • Loading branch information
majguo committed Jun 1, 2023
1 parent 3bdbe15 commit 3f3239b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/setup-credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,12 @@ USE_GITHUB_CLI=false
# Create service principal with Contributor role in the subscription
msg "${GREEN}(3/4) Create service principal ${SERVICE_PRINCIPAL_NAME}"
SUBSCRIPTION_ID=$(az account show --query id --output tsv --only-show-errors)
SERVICE_PRINCIPAL=$(az ad sp create-for-rbac --name ${SERVICE_PRINCIPAL_NAME} --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}" --sdk-auth --only-show-errors | base64 -w0)
# Explicitely disable line wrapping for non MacOS
w0=-w0
if [[ $OSTYPE == 'darwin'* ]]; then
w0=
fi
SERVICE_PRINCIPAL=$(az ad sp create-for-rbac --name ${SERVICE_PRINCIPAL_NAME} --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}" --sdk-auth --only-show-errors | base64 $w0)
msg "${YELLOW}\"DISAMBIG_PREFIX\""
msg "${GREEN}${DISAMBIG_PREFIX}"

Expand Down

0 comments on commit 3f3239b

Please sign in to comment.