Skip to content

Commit da8ce1c

Browse files
committed
Fix get_isa logic
1 parent 7affa07 commit da8ce1c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Bug fixes:
5252
[#5608](https://github.com/commercialhaskell/stack/pull/5608)
5353
* On Unix-like operating systems, respect the `with-gcc` option when installing
5454
GHC. See [#5609](https://github.com/commercialhaskell/stack/pull/5609)
55+
* Fixed logic in `get_isa()` in `get-stack.sh` to not include systems that don't have x86 in their `uname -m` output. See [5792](https://github.com/commercialhaskell/stack/issues/5792).
5556

5657
## v2.7.5
5758

etc/scripts/get-stack.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ get_isa() {
7575
echo arm
7676
elif uname -m | grep -q aarch64 ; then
7777
echo aarch64
78-
else
78+
elif uname -m | grep -q x86 ; then
7979
echo x86
80+
else
81+
die "$(uname -m) is not a supported instruction set"
8082
fi
8183
}
8284

0 commit comments

Comments
 (0)