Last active
July 17, 2022 00:40
-
-
Save ctrlaltdev/7407424fe11e094fa85c8246d49bec53 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=v2.1.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/armv7/armv6/armv5] " | |
read arch < /dev/tty | |
fi | |
curl -o DIYDDNS-$os-$arch.tar.gz -sL https://github.com/ctrlaltdev/DIYDDNS/releases/download/$version/DIYDDNS-$os-$arch.tar.gz | |
curl -o DIYDDNS-$os-$arch.tar.gz.sha256 -sL https://github.com/ctrlaltdev/DIYDDNS/releases/download/$version/DIYDDNS-$os-$arch.tar.gz.sha256 | |
sha256sum -c DIYDDNS-$os-$arch.tar.gz.sha256 | |
tar xzf DIYDDNS-$os-$arch.tar.gz | |
rm DIYDDNS-$os-$arch.tar.gz* | |
sudo mv DIYDDNS /usr/local/bin/ | |
echo "\nDIYDDNS INSTALLED\n" | |
DIYDDNS -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment