1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:20:04 +08:00

Add remote manager

This commit is contained in:
wsdjeg 2017-10-29 22:18:59 +08:00
parent 0f9bef2fc3
commit 3827240a56

26
.ci/update_remote.sh Executable file
View 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 $@