File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -446,10 +446,7 @@ function GetSdkTaskProject([string]$taskName) {
446446}
447447
448448function InitializeNativeTools () {
449- if ($null -eq $env: DisableNativeToolsetInstalls ) {
450- return
451- }
452- if (Get-Member - InputObject $GlobalJson - Name " native-tools" ) {
449+ if (-Not (Test-Path variable:DisableNativeToolsetInstalls) -And (Get-Member - InputObject $GlobalJson - Name " native-tools" )) {
453450 $nativeArgs = @ {}
454451 if ($ci ) {
455452 $nativeArgs = @ {
Original file line number Diff line number Diff line change 44
55# CI mode - set to true on CI server for PR validation build or official build.
66ci=${ci:- false}
7- disable_configure_toolset_import=${disable_configure_toolset_import:- null }
7+ disable_configure_toolset_import=${disable_configure_toolset_import:- }
88
99# Set to true to use the pipelines logger which will enable Azure logging output.
1010# https://github.com/Microsoft/azure-pipelines-tasks/blob/master/docs/authoring/commands.md
@@ -273,7 +273,7 @@ function GetNuGetPackageCachePath {
273273}
274274
275275function InitializeNativeTools() {
276- if [[ -z " ${DisableNativeToolsetInstalls:- } " ]]; then
276+ if [[ -n " ${DisableNativeToolsetInstalls:- } " ]]; then
277277 return
278278 fi
279279 if grep -Fq " native-tools" $global_json_file
@@ -437,7 +437,7 @@ Write-PipelineSetVariable -name "Temp" -value "$temp_dir"
437437Write-PipelineSetVariable -name " TMP" -value " $temp_dir "
438438
439439# Import custom tools configuration, if present in the repo.
440- if [[ " $disable_configure_toolset_import " != null ]]; then
440+ if [[ -z " $disable_configure_toolset_import " ]]; then
441441 configure_toolset_script=" $eng_root /configure-toolset.sh"
442442 if [[ -a " $configure_toolset_script " ]]; then
443443 . " $configure_toolset_script "
You can’t perform that action at this time.
0 commit comments