From b2cc01b57108c5dc6606e32b7091fe94f1107c1d Mon Sep 17 00:00:00 2001 From: andy finch Date: Thu, 28 Feb 2019 19:31:20 -0500 Subject: [PATCH] Error if not x86_64 (#50) --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index ad92097..61f6892 100755 --- a/install.sh +++ b/install.sh @@ -9,6 +9,16 @@ Darwin) os="osx" ;; *) os="linux" ;; esac +case $(uname -m) in +x86_64) arch="x86_64" ;; +*) arch="other" ;; +esac + +if [ "$arch" = "other" ]; then + echo "Unsuported architecture $(uname -m). Only x64 binaries are available." + exit +fi + if [ $# -eq 0 ]; then deno_asset_path=$(curl -sSf https://github.com/denoland/deno/releases | grep -o "/denoland/deno/releases/download/.*/deno_${os}_x64\\.gz" |