Skip to content

Instantly share code, notes, and snippets.

@maglietti
Last active May 23, 2022 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maglietti/b758db41a9f6f16d71b5f4ecff51a51c to your computer and use it in GitHub Desktop.
Save maglietti/b758db41a9f6f16d71b5f4ecff51a51c to your computer and use it in GitHub Desktop.
Download the latest version of Quine
#! /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
@maglietti
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment