mirror of
https://github.com/kami-blue/client
synced 2024-12-19 05:34:41 +00:00
update website scripts
This commit is contained in:
parent
c4b3b45d74
commit
0f7f541b6f
22
scripts/fullWeb.sh
Executable file
22
scripts/fullWeb.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Created by S-B99 on 06/03/20
|
||||
# echo "Usage: ./fullWeb.sh URL VER"
|
||||
|
||||
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|jar_url:.*|jar_url: $1|g" docs/_config.yml
|
||||
sed -i "s|jar_name:.*|jar_name: $2|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
|
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Created by S-B99 on 02/03/20
|
||||
# echo "Usage: ./ver.sh v2.0.0 01"
|
||||
# Created by S-B99 on 02/06/20
|
||||
# echo "Usage: ./website.sh URL VERSION BETAVERSION"
|
||||
|
||||
cd /home/bella/projects/kamiblueWebsite/ || exit
|
||||
|
||||
@ -11,7 +11,8 @@ case $1 in
|
||||
exit 1
|
||||
esac
|
||||
|
||||
sed -i "s|https:\/\/cdn\.discordapp\.com\/attachments\/.*-release\.jar|$1|g" docs/_config.yml
|
||||
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
|
||||
|
||||
git reset
|
||||
git add docs/_config.yml
|
||||
|
Loading…
Reference in New Issue
Block a user