Last active
February 15, 2025 22:22
-
-
Save ctrlaltdev/17ad1bc311775bb5fce404a537c52cc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
version=v1.0.0 | |
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