Skip to content

Commit 262dd71

Browse files
committed
Update PATH in current PowerShell session
The Get-Command verification was failing because $GITHUB_PATH only affects future steps, not the current PowerShell session. Now we also update $env:PATH so the verification can find quarto.
1 parent a17583a commit 262dd71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup/install-quarto-windows.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ try {
2424
Write-Error "Scoop installation failed with exit code $LASTEXITCODE"
2525
exit 1
2626
}
27-
Join-Path (Resolve-Path ~).Path "scoop\shims" >> $Env:GITHUB_PATH
27+
$scoopShims = Join-Path (Resolve-Path ~).Path "scoop\shims"
28+
$scoopShims >> $Env:GITHUB_PATH
29+
$env:PATH = "$scoopShims;$env:PATH"
2830
} catch {
2931
Write-Error "Failed to download or install Scoop: $_"
3032
exit 1

0 commit comments

Comments
 (0)