Sfoglia il codice sorgente

MicroBuild v2: Fix logic in run_build.ps1 to correctly use the provided value of $binpath if it is provided.

Doug Ilijev 9 anni fa
parent
commit
6251c650c2
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Build/scripts/run_build.ps1

+ 2 - 1
Build/scripts/run_build.ps1

@@ -85,7 +85,8 @@ $buildlogsPath = Join-Path $binDir $buildlogsSubdir
 
 $skipPogo = $skipPogo -or (Test-Path Env:\SKIP_POGO)
 
-if (("$binpath" -ne "") -or (-not (Test-Path $binpath))) {
+# if $binpath is not set or if it is an invalid path, then infer it
+if ((-not $binpath) -or (-not (Test-Path $binpath))) {
     $binpath = Join-Path $binDir "bin\${buildName}"
 }