Skip to content

Commit af8c7d8

Browse files
committed
Proposed fix #319 - non-portable uname -i use
*UNTESTED*
1 parent 4568cce commit af8c7d8

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

functions.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,16 @@ OPTIONS="-o Debug::NoLocking=1
3131

3232
# Detect system architecture to know which binaries of AppImage tools
3333
# should be downloaded and used.
34-
case "$(uname -i)" in
34+
case "$(uname -m)" in
3535
x86_64|amd64)
3636
# echo "x86-64 system architecture"
3737
SYSTEM_ARCH="x86_64";;
3838
i?86)
3939
# echo "x86 system architecture"
4040
SYSTEM_ARCH="i686";;
41-
# arm*)
41+
# arm*|aarch*)
4242
# echo "ARM system architecture"
4343
# SYSTEM_ARCH="";;
44-
unknown|AuthenticAMD|GenuineIntel)
45-
# uname -i not answer on debian, then:
46-
case "$(uname -m)" in
47-
x86_64|amd64)
48-
# echo "x86-64 system architecture"
49-
SYSTEM_ARCH="x86_64";;
50-
i?86)
51-
# echo "x86 system architecture"
52-
SYSTEM_ARCH="i686";;
53-
esac ;;
5444
*)
5545
echo "Unsupported system architecture"
5646
exit 1;;

0 commit comments

Comments
 (0)