Skip to content

Commit

Permalink
Add check for using install-dotnet-sdk-32bit wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock committed Jun 30, 2021
1 parent 7a73ce3 commit 90f9d95
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .azure-pipelines/steps/install-dotnet-sdk-32bit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ parameters:
default: ''

steps:
- bash: |
if [ -n "$CHANNEL" ] && [ -n "$SDKVERSION" ]; then
echo "##vso[task.logissue type=error;]You can't provide both \"channel\" and \"sdkVersion\". Pick one."
echo "##vso[task.complete result=Failed;]"
elif [ -z "$CHANNEL" ] && [ -z "$SDKVERSION" ]; then
echo "##vso[task.logissue type=error;]You must provide either \"channel\" or \"sdkVersion\"."
echo "##vso[task.complete result=Failed;]"
fi
env:
CHANNEL: ${{ parameters.channel }}
SDKVERSION: ${{ parameters.sdkVersion }}
displayName: Validate parameters
- ${{if ne(parameters.sdkVersion, '') }}:
- powershell: |
echo "Downloading dotnet-install.ps1"
Expand Down

0 comments on commit 90f9d95

Please sign in to comment.