Forked from steinwaywhw/One Liner to Download the Latest Release from Github Repo.md
Last active
August 28, 2019 20:00
-
-
Save MC42/b11179b30248d1ccd254ef2711dc7217 to your computer and use it in GitHub Desktop.
gh_clone_script_latest_release
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 | |
curl -s https://api.github.com/repos/opencv/opencv/releases/latest \ | |
| grep "browser_download_url.*zip" \ | |
| cut -d : -f 2,3 \ | |
| tr -d \" \ | |
| wget -qi - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment