Skip to content

Commit ccb8542

Browse files
committed
fix(installer): avoid copying Windows SDK executable onto itself
1 parent a6b23a9 commit ccb8542

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

vix-site/public/install.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,13 @@ function Install-Sdk([string]$archivePath, [string]$tmpDir) {
273273

274274
$exe = Join-Path $BinDir $BinName
275275

276-
Copy-Item -LiteralPath $exeCandidate.FullName -Destination $exe -Force
276+
if (-not [string]::Equals(
277+
$exeCandidate.FullName,
278+
$exe,
279+
[System.StringComparison]::OrdinalIgnoreCase
280+
)) {
281+
Copy-Item -LiteralPath $exeCandidate.FullName -Destination $exe -Force
282+
}
277283

278284
return $exe
279285
}

0 commit comments

Comments
 (0)