mirror of
https://github.com/danbulant/deno_install
synced 2026-07-05 19:20:42 +00:00
Error if not x86_64 (#50)
This commit is contained in:
parent
a3f6d552ae
commit
b2cc01b571
1 changed files with 10 additions and 0 deletions
10
install.sh
10
install.sh
|
|
@ -9,6 +9,16 @@ Darwin) os="osx" ;;
|
||||||
*) os="linux" ;;
|
*) os="linux" ;;
|
||||||
esac
|
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
|
if [ $# -eq 0 ]; then
|
||||||
deno_asset_path=$(curl -sSf https://github.com/denoland/deno/releases |
|
deno_asset_path=$(curl -sSf https://github.com/denoland/deno/releases |
|
||||||
grep -o "/denoland/deno/releases/download/.*/deno_${os}_x64\\.gz" |
|
grep -o "/denoland/deno/releases/download/.*/deno_${os}_x64\\.gz" |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue