1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:30:04 +08:00
SpaceVim/wiki/async.sh

34 lines
993 B
Bash
Raw Normal View History

2017-10-28 14:57:02 +08:00
#!/usr/bin/env bash
2018-01-28 14:27:06 +08:00
main () {
2019-07-09 23:14:35 +08:00
case "$1" in
en)
cd wiki/en/
git init
git add .
git config user.email "wsdjeg@qq.com"
git config user.name "SpaceVimBot"
git commit -m "Update wiki"
2021-08-26 21:00:19 +08:00
git remote add SpaceVimWikiEn https://SpaceVimBot:${BOTSECRET_GITHUB}@github.com/SpaceVim/SpaceVim.wiki.git
2019-07-09 23:14:35 +08:00
git push -f -u SpaceVimWikiEn master
cd -
rm -rf ./wiki/en/.git/
exit 0
;;
cn)
cd wiki/cn/
git init
git add .
git config user.email "wsdjeg@qq.com"
git config user.name "SpaceVimBot"
git commit -m "Update wiki"
git remote add SpaceVimWikiCn https://SpaceVimBot:${BOTSECRET}@gitee.com/spacevim/SpaceVim.wiki.git
git push -f -u SpaceVimWikiCn master
cd -
rm -rf ./wiki/cn/.git/
exit 0
esac
2018-01-28 14:27:06 +08:00
}
2017-10-28 14:57:02 +08:00
2018-01-28 14:27:06 +08:00
main $@