Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,23 @@ case "$(uname -i)" in
# arm*)
# echo "ARM system architecture"
# SYSTEM_ARCH="";;
unknown|AuthenticAMD|GenuineIntel)
# uname -i not answer on debian, then:
*)
# uname '-i' isn't portable so when failing, fall back to uname's
# recommended switch '-m':
case "$(uname -m)" in
x86_64|amd64)
# echo "x86-64 system architecture"
SYSTEM_ARCH="x86_64";;
i?86)
# echo "x86 system architecture"
SYSTEM_ARCH="i686";;
# arm*|aarch*)
# echo "ARM system architecture"
# SYSTEM_ARCH="";;
*)
echo "Unsupported system architecture: $(uname -m)"
exit 1;;
esac ;;
*)
echo "Unsupported system architecture"
exit 1;;
esac

# Either get the file from remote or from a static place.
Expand Down