mirror of https://github.com/zulip/zulip.git
install-shfmt: Add aarch64 support.
This fixes a problem provisioning on an ARM64 computer. Tested by running on M1 Mac. Fixes part of #18614
This commit is contained in:
parent
11257933b3
commit
b43cab3e3b
|
@ -2,8 +2,19 @@
|
|||
set -eu
|
||||
|
||||
version=3.2.4
|
||||
binary="shfmt_v${version}_linux_amd64"
|
||||
sha256=3f5a47f8fec27fae3e06d611559a2063f5d27e4b9501171dde9959b8c60a3538
|
||||
arch="$(uname -m)"
|
||||
|
||||
case $arch in
|
||||
"x86_64")
|
||||
binary="shfmt_v${version}_linux_amd64"
|
||||
sha256=3f5a47f8fec27fae3e06d611559a2063f5d27e4b9501171dde9959b8c60a3538
|
||||
;;
|
||||
|
||||
"aarch64")
|
||||
binary="shfmt_v${version}_linux_arm64"
|
||||
sha256=6474d9cc08a1c9fe2ef4be7a004951998e3067d46cf55a011ddd5ff7bfab3de6
|
||||
;;
|
||||
esac
|
||||
|
||||
check_version() {
|
||||
out="$(shfmt --version 2>/dev/null)" && [ "$out" = "v$version" ]
|
||||
|
|
Loading…
Reference in New Issue