Skip to content

Commit 6bb7903

Browse files
authored
fix(install): use correct arch name in 32-bit test (starship#2234)
1 parent 511bd85 commit 6bb7903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ detect_arch() {
202202
esac
203203

204204
# `uname -m` in some cases mis-reports 32-bit OS as 64-bit, so double check
205-
if [ "${arch}" = "x64" ] && [ "$(getconf LONG_BIT)" -eq 32 ]; then
205+
if [ "${arch}" = "x86_64" ] && [ "$(getconf LONG_BIT)" -eq 32 ]; then
206206
arch=i686
207207
elif [ "${arch}" = "aarch64" ] && [ "$(getconf LONG_BIT)" -eq 32 ]; then
208208
arch=arm

0 commit comments

Comments
 (0)