mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
Fix flygrep script
This commit is contained in:
parent
8b043a25c3
commit
1ff08cbfea
@ -29,6 +29,7 @@ main () {
|
|||||||
_detect autoload/SpaceVim/api/vim/compatible.vim
|
_detect autoload/SpaceVim/api/vim/compatible.vim
|
||||||
_detect autoload/SpaceVim/api/neovim/floating.vim
|
_detect autoload/SpaceVim/api/neovim/floating.vim
|
||||||
_detect autoload/SpaceVim/api/data/list.vim
|
_detect autoload/SpaceVim/api/data/list.vim
|
||||||
|
_detect autoload/SpaceVim/api/data/json.vim
|
||||||
_detect autoload/SpaceVim/api/prompt.vim
|
_detect autoload/SpaceVim/api/prompt.vim
|
||||||
_detect autoload/SpaceVim/api/job.vim
|
_detect autoload/SpaceVim/api/job.vim
|
||||||
_detect autoload/SpaceVim/api/system.vim
|
_detect autoload/SpaceVim/api/system.vim
|
||||||
@ -37,6 +38,8 @@ main () {
|
|||||||
_detect syntax/SpaceVimFlyGrep.vim
|
_detect syntax/SpaceVimFlyGrep.vim
|
||||||
_detect LICENSE
|
_detect LICENSE
|
||||||
git add .
|
git add .
|
||||||
|
git config user.email "wsdjeg@qq.com"
|
||||||
|
git config user.name "SpaceVimBot"
|
||||||
git commit -m "Auto Update"
|
git commit -m "Auto Update"
|
||||||
git remote add wsdjeg_flygrep https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/FlyGrep.vim.git
|
git remote add wsdjeg_flygrep https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/FlyGrep.vim.git
|
||||||
git push wsdjeg_flygrep master
|
git push wsdjeg_flygrep master
|
||||||
@ -63,6 +66,8 @@ main () {
|
|||||||
_detect syntax/SpaceVimPlugManager.vim
|
_detect syntax/SpaceVimPlugManager.vim
|
||||||
_detect LICENSE
|
_detect LICENSE
|
||||||
git add .
|
git add .
|
||||||
|
git config user.email "wsdjeg@qq.com"
|
||||||
|
git config user.name "SpaceVimBot"
|
||||||
git commit -m "Auto Update"
|
git commit -m "Auto Update"
|
||||||
git remote add wsdjeg_dein_ui https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/dein-ui.vim.git
|
git remote add wsdjeg_dein_ui https://SpaceVimBot:${BOTSECRET}@github.com/wsdjeg/dein-ui.vim.git
|
||||||
git push wsdjeg_dein_ui master
|
git push wsdjeg_dein_ui master
|
||||||
|
@ -1,29 +1,33 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
main () {
|
main () {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
en)
|
en)
|
||||||
cd wiki/en/
|
cd wiki/en/
|
||||||
git init
|
git init
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Update wiki"
|
git config user.email "wsdjeg@qq.com"
|
||||||
git remote add SpaceVimWikiEn https://SpaceVimBot:${BOTSECRET}@github.com/SpaceVim/SpaceVim.wiki.git
|
git config user.name "SpaceVimBot"
|
||||||
git push -f -u SpaceVimWikiEn master
|
git commit -m "Update wiki"
|
||||||
cd -
|
git remote add SpaceVimWikiEn https://SpaceVimBot:${BOTSECRET}@github.com/SpaceVim/SpaceVim.wiki.git
|
||||||
rm -rf ./wiki/en/.git/
|
git push -f -u SpaceVimWikiEn master
|
||||||
exit 0
|
cd -
|
||||||
;;
|
rm -rf ./wiki/en/.git/
|
||||||
cn)
|
exit 0
|
||||||
cd wiki/cn/
|
;;
|
||||||
git init
|
cn)
|
||||||
git add .
|
cd wiki/cn/
|
||||||
git commit -m "Update wiki"
|
git init
|
||||||
git remote add SpaceVimWikiCn https://SpaceVimBot:${BOTSECRET}@gitee.com/spacevim/SpaceVim.wiki.git
|
git add .
|
||||||
git push -f -u SpaceVimWikiCn master
|
git config user.email "wsdjeg@qq.com"
|
||||||
cd -
|
git config user.name "SpaceVimBot"
|
||||||
rm -rf ./wiki/cn/.git/
|
git commit -m "Update wiki"
|
||||||
exit 0
|
git remote add SpaceVimWikiCn https://SpaceVimBot:${BOTSECRET}@gitee.com/spacevim/SpaceVim.wiki.git
|
||||||
esac
|
git push -f -u SpaceVimWikiCn master
|
||||||
|
cd -
|
||||||
|
rm -rf ./wiki/cn/.git/
|
||||||
|
exit 0
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
main $@
|
main $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user