
Powershell scripts cannot be launched as commands on Windows. They must be run through the `powershell` or `pwsh` tool.
10 lines
210 B
PowerShell
10 lines
210 B
PowerShell
$erroractionpreference = "stop"
|
|
|
|
cmd /c "`".gitlab\intel\setvars.bat`" & set" |
|
|
foreach {
|
|
if ($_ -match "=") {
|
|
$v = $_.split("=")
|
|
[Environment]::SetEnvironmentVariable($v[0], $v[1])
|
|
}
|
|
}
|