Skip to content

Commit 862ead0

Browse files
benjamin7007Copilot
andcommitted
fix: Join-Path PS5 compatibility (only accepts 2 args)
PowerShell 5's Join-Path doesn't support 3+ path segments. Use nested Join-Path calls instead. Fixes: 'PositionalParameterNotFound' for 'pawscope.exe' on Windows PS5. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7f0722c commit 862ead0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Write-Host "==> Checksum OK" -ForegroundColor Cyan
6262

6363
# Extract
6464
Expand-Archive -Path $ZipPath -DestinationPath $TmpDir -Force
65-
$BinSrc = Join-Path $TmpDir "pawscope-${Target}" "pawscope.exe"
65+
$BinSrc = Join-Path (Join-Path $TmpDir "pawscope-${Target}") "pawscope.exe"
6666
if (-not (Test-Path $BinSrc)) {
6767
Write-Host "error: pawscope.exe not found in archive" -ForegroundColor Red
6868
exit 1

0 commit comments

Comments
 (0)