Skip to content

Commit c5cb955

Browse files
Update src/main.ps1
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 01e9aae commit c5cb955

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/main.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ switch ($true) {
33
$architecture = (uname -m)
44
if ($architecture -eq 'aarch64') {
55
Import-Module "$PSScriptRoot/libs/linux-arm64/PSModule.Sodium.dll"
6-
} else {
6+
$script:Supported = $true
7+
} elseif ($architecture -eq 'x86_64') {
78
Import-Module "$PSScriptRoot/libs/linux-x64/PSModule.Sodium.dll"
9+
$script:Supported = $true
10+
} else {
11+
throw "Unsupported Linux architecture: $architecture. Please refer to the documentation for supported architectures."
812
}
9-
$script:Supported = $true
1013
}
1114
$IsMacOS {
1215
if ("$(sysctl -n machdep.cpu.brand_string)" -Like 'Apple*') {

0 commit comments

Comments
 (0)