Skip to content

Commit

Permalink
fix: 32-bit arm architecture detection missing (#1773)
Browse files Browse the repository at this point in the history
* fix: 32-bit arm architecture detection missing

Signed-off-by: Stewart X Addison <[email protected]>

* Fixup

Signed-off-by: Stewart X Addison <[email protected]>

---------

Signed-off-by: Stewart X Addison <[email protected]>
Co-authored-by: Max Rydahl Andersen <[email protected]>
  • Loading branch information
sxa and maxandersen authored Mar 31, 2024
1 parent 078ccf4 commit c26de98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/dev/jbang/util/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public enum OS {
}

public enum Arch {
x32, x64, aarch64, arm64, ppc64, ppc64le, s390x, riscv64, unknown
x32, x64, aarch64, arm, arm64, ppc64, ppc64le, s390x, riscv64, unknown
}

public enum Shell {
Expand Down Expand Up @@ -552,6 +552,8 @@ public static Arch getArch() {
return Arch.x32;
} else if (arch.matches("^(aarch64)$")) {
return Arch.aarch64;
} else if (arch.matches("^(arm)$")) {
return Arch.arm;
} else if (arch.matches("^(ppc64)$")) {
return Arch.ppc64;
} else if (arch.matches("^(ppc64le)$")) {
Expand Down

0 comments on commit c26de98

Please sign in to comment.