Merge pull request #1401 from AaronDewes/patch-1

Add arm64 support to linux install script
This commit is contained in:
Guillaume Tardif 2021-03-08 09:59:34 +01:00 committed by GitHub
commit 418ab35ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,11 @@ if ! [ "$(command -v curl)" ]; then
exit 1
fi
if [ "$(uname -m)" = "aarch64" ]; then
DOWNLOAD_URL=${DOWNLOAD_URL:-$(curl -s ${RELEASE_URL} | grep "browser_download_url.*docker-linux-arm64.tar.gz" | cut -d : -f 2,3)}
else
DOWNLOAD_URL=${DOWNLOAD_URL:-$(curl -s ${RELEASE_URL} | grep "browser_download_url.*docker-linux-amd64.tar.gz" | cut -d : -f 2,3)}
fi
# Check if the Compose CLI is already installed
if [ $(is_new_cli "docker") -eq 1 ]; then