Skip to content

Instantly share code, notes, and snippets.

@ctrlaltdev
Last active July 17, 2022 02:09
Show Gist options
  • Save ctrlaltdev/17ad1bc311775bb5fce404a537c52cc3 to your computer and use it in GitHub Desktop.
Save ctrlaltdev/17ad1bc311775bb5fce404a537c52cc3 to your computer and use it in GitHub Desktop.
#!/bin/sh
version=v1.0.0-alpha-1
os=$1
arch=$2
if [ -z "$os" ] || [ -z "$arch" ]; then
echo -n "What is your OS? [darwin/linux] "
read os < /dev/tty
echo -n "What is your ARCH? [amd64/arm64] "
read arch < /dev/tty
fi
curl -o GRY-$os-$arch.tar.gz -sL https://github.com/ctrlaltdev/GRY/releases/download/$version/GRY-$os-$arch.tar.gz
curl -o GRY-$os-$arch.tar.gz.sha256 -sL https://github.com/ctrlaltdev/GRY/releases/download/$version/GRY-$os-$arch.tar.gz.sha256
sha256sum -c GRY-$os-$arch.tar.gz.sha256
tar xzf GRY-$os-$arch.tar.gz
rm GRY-$os-$arch.tar.gz*
sudo mv GRY /usr/local/bin/
echo "\GRY INSTALLED\n"
GRY -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment