bragi/update.sh
2020-02-29 01:28:46 +01:00

21 lines
421 B
Bash

#!/usr/bin/env bash
case "$1" in
stable)
curl -Lo /tmp/botamusique.tar.gz https://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