Initial commit
This commit is contained in:
commit
cefd40b6dc
31 changed files with 1028 additions and 0 deletions
13
bin/update-amm
Executable file
13
bin/update-amm
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/zsh
|
||||
versions=$(curl -L https://api.github.com/repos/lihaoyi/Ammonite/releases/latest)
|
||||
|
||||
download-version() {
|
||||
(
|
||||
echo "#/usr/bin/env python --version sh" && \
|
||||
curl -L $( echo $versions \
|
||||
| jq -r ".assets | map(select(.name | startswith(\"$1\")))[0].browser_download_url")
|
||||
) > $2
|
||||
chmod +x $2
|
||||
}
|
||||
download-version 2.13 $(which amm)
|
||||
download-version 2.12 $(which amm)2.12
|
Loading…
Add table
Add a link
Reference in a new issue