Last active
May 23, 2022 19:22
-
-
Save maglietti/b758db41a9f6f16d71b5f4ecff51a51c to your computer and use it in GitHub Desktop.
Download the latest version of Quine
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 | |
# Download the latest release | |
curl -s https://api.github.com/repos/thatdot/quine/releases/latest \ | |
| grep "browser_download_url.*jar" \ | |
| cut -d : -f 2,3 \ | |
| tr -d \" \ | |
| wget -i - | |
# Create the latest sym-link | |
ln -s $(ls -tr quine-*.jar | tail -1) latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I keep versions of Quine in a
releases
directory inside of my working directory.This script downloads the latest release from Github and then creates a sym-link to
latest
.That way I can always run the latest version of Quine using
java -jar ../releases/latest
.