Last active
August 28, 2020 18:43
-
-
Save zhanglianxin/06c371b528ec52315ce93d9c9b1d9401 to your computer and use it in GitHub Desktop.
Get latest release tag from repo releases page.
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 | |
RELEASES=https://github.com/zhanglianxin/qrc/releases | |
FILENAME='qrc_linux_amd64"' | |
RELEASE_TAG=$(wget -qO - "$RELEASES" | grep "$FILENAME" | head -1 | awk -F / '{print $6}') | |
echo $RELEASE_TAG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e.g.