File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,19 @@ function Get-TerraformTool {
3939 }
4040 }
4141
42+ $osArchitecture = Get-OSArchitecture
43+
4244 $unzipdir = Join-Path - Path $toolsPath - ChildPath " terraform_$version "
4345 if (Test-Path $unzipdir ) {
4446 Write-Verbose " Terraform $version already installed, adding to Path."
45- if ($os -eq " windows" ) {
47+ if ($osArchitecture . os -eq " windows" ) {
4648 $env: PATH = " $ ( $unzipdir ) ;$env: PATH "
4749 } else {
4850 $env: PATH = " $ ( $unzipdir ) :$env: PATH "
4951 }
5052 return
5153 }
5254
53- $osArchitecture = Get-OSArchitecture
54-
5555 $zipfilePath = " $unzipdir .zip"
5656
5757 $url = $release.builds | Where-Object { $_.arch -eq $osArchitecture.architecture -and $_.os -eq $osArchitecture.os } | Select-Object - First 1 - ExpandProperty url
You can’t perform that action at this time.
0 commit comments