diff --git a/eng/pipelines/templates/jobs/sdk-diff-tests.yml b/eng/pipelines/templates/jobs/sdk-diff-tests.yml index f135ab727..afea9f2b1 100644 --- a/eng/pipelines/templates/jobs/sdk-diff-tests.yml +++ b/eng/pipelines/templates/jobs/sdk-diff-tests.yml @@ -94,7 +94,8 @@ jobs: sdk_tarball_name=$(find "$(Pipeline.Workspace)/Artifacts" -name "dotnet-sdk-*-${{ parameters.targetRid }}.tar.gz" -exec basename {} \;) - if [[ -z $sdk_tarball_name ]]; then + if [[ -z "$sdk_tarball_name" ]]; then + fail "Source-build SDK tarball does not exist in '$(Pipeline.Workspace)/Artifacts'" exit 1 fi