Skip to content

Instantly share code, notes, and snippets.

@maglietti
Last active May 23, 2022 19:22
Embed
What would you like to do?
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