move some scripts to devel subfolder

This commit is contained in:
Alexander Gehrke 2020-07-20 16:18:36 +02:00
parent 284a454a9a
commit 74d8beff3a
8 changed files with 0 additions and 0 deletions

13
devel/update-amm Executable file
View 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