Skip to content

Commit 45c1d9d

Browse files
committed
Fix x86_64 machine name for Linux and Darwin.
1 parent d2400a5 commit 45c1d9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/bash/sdkman-init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function infer_platform() {
4444
i686)
4545
echo "LinuxX32"
4646
;;
47-
X86_64)
47+
x86_64)
4848
echo "LinuxX64"
4949
;;
5050
armv7l)
@@ -63,7 +63,7 @@ function infer_platform() {
6363
;;
6464
Darwin)
6565
case $machine in
66-
X86_64)
66+
x86_64)
6767
echo "DarwinX64"
6868
;;
6969
arm64)

src/test/groovy/sdkman/specs/PlatformSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class PlatformSpec extends SdkmanEnvSpecification {
2121
where:
2222
kernel | machine | platform
2323
"Linux" | "i686" | "LinuxX32"
24-
"Linux" | "X86_64" | "LinuxX64"
24+
"Linux" | "x86_64" | "LinuxX64"
2525
"Linux" | "armv7l" | "LinuxARM32"
2626
"Linux" | "armv8l" | "LinuxARM64"
2727
"Linux" | "aarch64" | "LinuxARM64"
2828
"Linux" | "" | "LinuxX64"
29-
"Darwin" | "X86_64" | "DarwinX64"
29+
"Darwin" | "x86_64" | "DarwinX64"
3030
"Darwin" | "arm64" | "DarwinARM64"
3131
"Darwin" | "" | "DarwinX64"
3232
"MSYS64" | "i686" | "MSYS64"

0 commit comments

Comments
 (0)