abra/script.d/abra-installer

19 lines
381 B
Plaintext
Raw Normal View History

2020-09-22 11:37:33 +00:00
#!/bin/bash
2020-09-27 06:20:02 +00:00
ABRA_VERSION="0.3.1"
2020-09-22 11:37:33 +00:00
ABRA_SRC="https://git.autonomic.zone/autonomic-cooperative/abra/raw/tag/$ABRA_VERSION/abra"
function install_abra {
mkdir -p "$HOME/.local/bin"
curl "$ABRA_SRC" > "$HOME/.local/bin/abra"
chmod +x "$HOME/.local/bin/abra"
echo "abra installed to $HOME/.loca/bin/abra"
}
function run_installation {
install_abra
}
run_installation
exit 0