Skip to content

Commit ecc6247

Browse files
committed
wip: log path
1 parent 89862d1 commit ecc6247

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/installer/windows.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,17 @@ export class WindowsToolchainInstaller extends VerifyingToolchainInstaller<Windo
121121
core.debug(`Adding "${envPath}" to PATH`)
122122
core.addPath(envPath)
123123
}
124+
const pwshScript = `
125+
foreach ($level in "Machine", "User") {
126+
[Environment]::GetEnvironmentVariables($level).GetEnumerator() | % {
127+
# For Path variables, append the new values, if they're not already in there
128+
if ($_.Name -Match 'Path$') {
129+
Write-Output "Env:$($_.Name), value$($_.Value)"
130+
}
131+
}
132+
}
133+
`
134+
await exec ('pwsh', ['--command', pwshScript])
124135
core.debug(`Swift installed at "${swiftPath}"`)
125136
if (!this.visualStudio) {
126137
throw new Error('No supported Visual Studio installation in installer')

0 commit comments

Comments
 (0)