1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 03:00:06 +08:00
SpaceVim/.ci/update_remote.sh
2017-10-29 22:18:59 +08:00

27 lines
456 B
Bash
Executable File

#!/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 $@