Skip to content

Commit

Permalink
Merge pull request #38 from opentofu/fix-localized-os-download
Browse files Browse the repository at this point in the history
Fixes #37: Incorrect os architecture detection on localized OS
  • Loading branch information
abstractionfactory authored Nov 5, 2024
2 parents 61965ef + 8f98b56 commit 87f2749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/install-opentofu.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ function installStandalone() {
logInfo "Downloading OpenTofu version ${opentofuVersion}..."

$tempPath = tempdir
if ((Get-CimInstance Win32_operatingsystem).OSArchitecture -eq "64-bit") {
if ([Environment]::Is64BitOperatingSystem) {
$arch = "amd64"
} else {
$arch = "386"
Expand Down

0 comments on commit 87f2749

Please sign in to comment.