keep + first = some
This commit is contained in:
parent
6852645875
commit
2b36d312db
1 changed files with 1 additions and 2 deletions
|
|
@ -159,8 +159,7 @@ $ curl -s https://api.github.com/repos/borkdude/babashka/tags \
|
|||
$ curl -s https://api.github.com/repos/borkdude/babashka/releases \
|
||||
| jet --from json --keywordize \
|
||||
| bb '(-> *in* first :assets)' \
|
||||
| bb '(keep #(re-find #"^.*linux.*" (:browser_download_url %)) *in*)' \
|
||||
| bb '(first *in*)' \
|
||||
| bb '(some #(re-find #"^.*linux.*" (:browser_download_url %)) *in*)' \
|
||||
| xargs -n1 curl -sL > /tmp/bb-linux.zip
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue