Choose the right architecture in bin/linkerd script
@@ -10,7 +10,29 @@ system=$(uname -s)
if [ "$system" = Darwin ]; then
bin=$rootdir/target/cli/darwin/linkerd
elif [ "$system" = Linux ]; then
- bin=$rootdir/target/cli/linux/linkerd
+ arch=$(uname -m)
+ case $arch in
+ x86_64)
+ arch=amd64
+ ;;
+ armv8*)
+ arch=arm64
+ ;;
+ aarch64*)
+ arch=arm64
+ ;;
+ armv*)
+ arch=arm
+ ;;
+ amd64|arm64)
+ arch=$arch
+ ;;
+ *)
+ echo "unsupported architecture: $arch" >&2
+ exit 1
+ ;;
+ esac
+ bin=$rootdir/target/cli/linux-$arch/linkerd
else
echo "unknown system: $system" >&2
exit 1
