Last active
March 7, 2019 02:31
-
-
Save JensRantil/ba21c50e7720bfc62050 to your computer and use it in GitHub Desktop.
Install jass - a utility to encrypt/decrypt stuff to/from SSH keys.
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 | |
# Install using: | |
# curl https://gist.github.com/JensRantil/ba21c50e7720bfc62050/raw/c34825afc94940388b1b1dca2abe4c813211ecd0/install.sh | bash -e | |
# ...but PLEASE have a look at the URL to make sure its sane first! | |
# | |
# An alternative is obviously to download the script and executing it. | |
# Fail early. | |
set -e | |
mkdir -p ~/.tmp-jass | |
cd ~/.tmp-jass | |
git clone git@github.com:jschauma/jass.git | |
cd jass | |
mkdir -p /usr/local/share/man/man1 | |
cp -iv doc/jass.1 /usr/local/share/man/man1 | |
cd src | |
go build jass.go | |
mkdir -p /usr/local/bin | |
cp -v jass /usr/local/bin | |
cd | |
rm -frv .tmp-jass | |
echo The binary is now installed in /usr/local/bin/jass. | |
echo | |
echo See https://github.com/jschauma/jass/blob/master/README.md#how-to-use-jass1 | |
echo for information on how to use this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment