Skip to content

Commit

Permalink
Add support for linux/arm64 to install-latest.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
csasarak committed Sep 3, 2024
1 parent 18b4c39 commit 0895ff2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion install-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ is_supported_platform() {
darwin/amd64) found=0 ;;
darwin/arm64) found=0 ;;
linux/amd64) found=0 ;;
linux/arm64) found=0 ;;
esac
return $found
}
Expand Down Expand Up @@ -119,7 +120,16 @@ adjust_arch() {
# adjust archive name based on ARCH
true
}

arch_version_check() {
# TODO: Make this version correct before merging.
if [ "${ARCH}" = "arm64" ] && version_less_than "${VERSION}" '3.9.32'
then
echo "There is no linux/arm64 binary for version $VERSION."
echo "Please select a version that is at least version 3.9.32"
exit 1
fi
true
}
cat /dev/null <<EOF
------------------------------------------------------------------------
https://github.com/client9/shlib - portable posix shell functions
Expand Down Expand Up @@ -482,6 +492,7 @@ adjust_os

adjust_arch

arch_version_check

NAME=$(get_binary_name)
TARBALL=${NAME}.${FORMAT}
Expand Down

0 comments on commit 0895ff2

Please sign in to comment.