Forked from steinwaywhw/One Liner to Download the Latest Release from Github Repo.md
Created
March 20, 2023 11:43
-
-
Save mdvtkr/b9f60dac0cdb2a72843ab8794a79e2b9 to your computer and use it in GitHub Desktop.
Revisions
-
steinwaywhw revised this gist
May 4, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,5 +8,5 @@ curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \ | grep "browser_download_url.*deb" \ | cut -d : -f 2,3 \ | tr -d \" \ | wget -qi - ``` -
steinwaywhw revised this gist
May 4, 2016 . 1 changed file with 9 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,12 @@ * Use `curl` to get the JSON response for the latest release * Use `grep` to find the line containing file URL * Use `cut` and `tr` to extract the URL * Use `wget` to download it ```bash curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \ | grep "browser_download_url.*deb" \ | cut -d : -f 2,3 \ | tr -d \" \ | wget -qi - ``` -
steinwaywhw created this gist
May 4, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ ```bash curl -s https://api.github.com/repos/jgm/pandoc/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -qi - ```