bragi/update.sh
2020-03-12 19:57:15 +01:00

20 lines
429 B
Bash

#!/usr/bin/env bash
case "$1" in
stable)
curl -Lo /tmp/botamusique.tar.gz https://packages.azlux.fr/botamusique/sources.tar.gz
tar -xzf /tmp/botamusique.tar.gz -C /tmp/
cp -r /tmp/botamusique/* .
rm -r /tmp/botamusique
rm -r /tmp/botamusique.tar.gz
;;
testing)
git fetch
git pull --all
git submodule update
;;
*)
;;
esac
exit 0