Check if one package points to the last version of the github repository

  • Hi.

    I have made this small bash to check if one package is updated or not, using the github api.

    External Content gist.github.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    • Only works for packages stored on github.
    • If the package use release numbers instead of commits, sometimes the release not is found at /repos/$OWNER/$REPO/releases/latest

    Usage.
    ./getversion.sh github_user:github_pwd > results.out

    Note that the $ROOT is hardcoded, and maybe bash is not my best skill. Is just a proof of concept.