2020-03-02 16:48:30 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-03-06 23:31:29 +00:00
|
|
|
# Created by S-B99 on 02/06/20
|
|
|
|
# echo "Usage: ./website.sh URL VERSION BETAVERSION"
|
2020-03-02 16:48:30 +00:00
|
|
|
|
|
|
|
cd /home/bella/projects/kamiblueWebsite/ || exit
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
*'|'*)
|
|
|
|
printf 'error: url cannot have any "|" in it\n' >&2
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
2020-03-06 23:31:29 +00:00
|
|
|
sed -i "s|beta_jar_url:.*|beta_jar_url: $1|g" docs/_config.yml
|
|
|
|
sed -i "s|beta_jar_name:.*|beta_jar_name: $2-beta-$3|g" docs/_config.yml
|
2020-03-02 16:48:30 +00:00
|
|
|
|
|
|
|
git reset
|
|
|
|
git add docs/_config.yml
|
|
|
|
git commit -m "[BOT] New beta release from Discord"
|
|
|
|
git push
|
|
|
|
|
|
|
|
cd /home/bella/projects/kamiblue/ || exit
|