Skip to content

Instantly share code, notes, and snippets.

@Syzygianinfern0
Last active June 27, 2023 02:12
Show Gist options
  • Save Syzygianinfern0/97b77bff7ef4865f29f030444558dccd to your computer and use it in GitHub Desktop.
Save Syzygianinfern0/97b77bff7ef4865f29f030444558dccd to your computer and use it in GitHub Desktop.
Install Age
#!/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