1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:50:03 +08:00
SpaceVim/wiki/async.sh
2018-01-28 14:27:06 +08:00

30 lines
664 B
Bash
Executable File

#!/usr/bin/env bash
main () {
case "$1" in
en)
cd wiki/en/
git init
git add .
git commit -m "Update wiki"
git remote add SpaceVimWikiEn https://SpaceVimBot:${BOTSECRET}@github.com/SpaceVim/SpaceVim.wiki.git
git push -f -u SpaceVimWikiEn master
cd -
rm -rf ./wiki/en/.git/
exit 0
;;
cn)
cd wiki/cn/
git init
git add .
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
}
main $@