Skip to content

Commit

Permalink
install script support aarch64 for M1/docker - fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
danenania committed Jun 3, 2021
1 parent 3821daa commit 2c8b6b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ elif [[ "$(uname -m)" == armv7* ]]; then
ARCH="armv7"
elif [[ "$(uname -m)" == 'arm64' ]]; then
ARCH="arm64"
elif [[ "$(uname -m)" == 'aarch64' ]]; then
ARCH="arm64"
else
ARCH="386"
fi
Expand Down Expand Up @@ -61,8 +63,8 @@ cleanup () {

download_envkey () {
echo "Downloading envkey-source binary for ${PLATFORM}-${ARCH}"
url="https://github.com/envkey/envkey-source/releases/download/v${VERSION}/envkey-source_${VERSION}_${PLATFORM}_${ARCH}.tar.gz"
url="https://github.com/envkey/envkey-source/releases/download/v${VERSION}/envkey-source_${VERSION}_${PLATFORM}_${ARCH}.tar.gz"

echo "Downloading tarball from Github Releases: ${url}"
curl -s -L -o envkey-source.tar.gz "${url}"

Expand All @@ -71,7 +73,7 @@ download_envkey () {
url="https://envkey-source-releases.s3.amazonaws.com/envkey-source_${VERSION}_${PLATFORM}_${ARCH}.tar.gz"
echo "Now attempting to load from s3 bucket backup: ${url}"
curl -s -L -o envkey-source.tar.gz "${url}"
fi
fi

tar zxf envkey-source.tar.gz envkey-source.exe 2> /dev/null
tar zxf envkey-source.tar.gz envkey-source 2> /dev/null
Expand Down

0 comments on commit 2c8b6b4

Please sign in to comment.