Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get the lastest version number of FogProject (or any Github Project)
#!/bin/bash
githubproject="https://github.com/FOGProject/fogproject/releases/latest/"
url=$(curl -Ls -o /dev/null -w %{url_effective} $githubproject)
version=${url##*/}
echo $version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment