Skip to content

Commit 8df95e1

Browse files
committed
[MERGE #2204 @dilijev] MicroBuild v2: Fix logic in run_build.ps1 to correctly use the provided value of $binpath if it is provided.
Merge pull request #2204 from dilijev:mbv2
2 parents fc7ea25 + 6251c65 commit 8df95e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Build/scripts/run_build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ $buildlogsPath = Join-Path $binDir $buildlogsSubdir
8585

8686
$skipPogo = $skipPogo -or (Test-Path Env:\SKIP_POGO)
8787

88-
if (("$binpath" -ne "") -or (-not (Test-Path $binpath))) {
88+
# if $binpath is not set or if it is an invalid path, then infer it
89+
if ((-not $binpath) -or (-not (Test-Path $binpath))) {
8990
$binpath = Join-Path $binDir "bin\${buildName}"
9091
}
9192

0 commit comments

Comments
 (0)