Last active
June 27, 2023 02:12
-
-
Save Syzygianinfern0/97b77bff7ef4865f29f030444558dccd to your computer and use it in GitHub Desktop.
Install Age
This file contains 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/bash | |
if [[ $(uname) == "Linux" ]] && [[ $(uname -m) == "x86_64" ]]; then | |
wget --content-disposition https://dl.filippo.io/age/latest?for=Linux/amd64 | |
elif [[ $(uname) == "Darwin" ]]; then | |
wget --content-disposition https://dl.filippo.io/age/latest?for=$(uname)/$(uname -m) | |
else | |
echo "Error: Unsupported OS" | |
fi | |
tar xvf age-*.tar.gz | |
mkdir -p $HOME/bin | |
cp age/age* $HOME/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment