mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 12:50:04 +08:00
Add remote manager
This commit is contained in:
parent
0f9bef2fc3
commit
3827240a56
26
.ci/update_remote.sh
Executable file
26
.ci/update_remote.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
usage () {
|
||||
echo ".ci/update_remote.sh [option] [target]"
|
||||
}
|
||||
|
||||
check_remote () {
|
||||
if [ -z "$(git remote -v | grep git@gitee.com:spacevim/SpaceVim.git)" ];then
|
||||
git remote add gitee git@gitee.com:spacevim/SpaceVim.git
|
||||
fi
|
||||
}
|
||||
|
||||
main () {
|
||||
if [ $# -gt 0 ]
|
||||
check_remote
|
||||
then
|
||||
case $1 in
|
||||
--help|-h)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
main $@
|
Loading…
Reference in New Issue
Block a user