close S-B99/kamiblueWebsite/issues/29

This commit is contained in:
Bella 2020-03-02 11:48:30 -05:00
parent 604bb458c1
commit de1d3360e3
1 changed files with 21 additions and 0 deletions

21
scripts/website.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
# Created by S-B99 on 02/03/20
# echo "Usage: ./ver.sh v2.0.0 01"
cd /home/bella/projects/kamiblueWebsite/ || exit
case $1 in
*'|'*)
printf 'error: url cannot have any "|" in it\n' >&2
exit 1
esac
sed -i "s|https:\/\/cdn\.discordapp\.com\/attachments\/.*-release\.jar|$1|g" docs/_config.yml
git reset
git add docs/_config.yml
git commit -m "[BOT] New beta release from Discord"
git push
cd /home/bella/projects/kamiblue/ || exit