This commit is contained in:
Michiel Borkent 2019-08-10 20:52:13 +02:00
parent 2b36d312db
commit f990b819a7

View file

@ -153,14 +153,14 @@ $ curl -s https://api.github.com/repos/borkdude/babashka/tags \
"0.0.4" "0.0.4"
``` ```
### Download latest OS-specific version of babashka ### Get latest OS-specific download url from Github
``` shellsession ``` shellsession
$ curl -s https://api.github.com/repos/borkdude/babashka/releases \ $ curl -s https://api.github.com/repos/borkdude/babashka/releases \
| jet --from json --keywordize \ | jet --from json --keywordize \
| bb '(-> *in* first :assets)' \ | bb '(-> *in* first :assets)' \
| bb '(some #(re-find #"^.*linux.*" (:browser_download_url %)) *in*)' \ | bb '(some #(re-find #".*linux.*" (:browser_download_url %)) *in*)'
| xargs -n1 curl -sL > /tmp/bb-linux.zip "https://github.com/borkdude/babashka/releases/download/v0.0.4/babashka-0.0.4-linux-amd64.zip"
``` ```
## License ## License