We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01e9aae commit c5cb955Copy full SHA for c5cb955
1 file changed
src/main.ps1
@@ -3,10 +3,13 @@ switch ($true) {
3
$architecture = (uname -m)
4
if ($architecture -eq 'aarch64') {
5
Import-Module "$PSScriptRoot/libs/linux-arm64/PSModule.Sodium.dll"
6
- } else {
+ $script:Supported = $true
7
+ } elseif ($architecture -eq 'x86_64') {
8
Import-Module "$PSScriptRoot/libs/linux-x64/PSModule.Sodium.dll"
9
10
+ } else {
11
+ throw "Unsupported Linux architecture: $architecture. Please refer to the documentation for supported architectures."
12
}
- $script:Supported = $true
13
14
$IsMacOS {
15
if ("$(sysctl -n machdep.cpu.brand_string)" -Like 'Apple*') {
0 commit comments