diff --git a/trunk/scripts/_mirror.utils.sh b/trunk/scripts/_mirror.utils.sh new file mode 100755 index 000000000..a5cee9756 --- /dev/null +++ b/trunk/scripts/_mirror.utils.sh @@ -0,0 +1,94 @@ +#!/bin/bash + +############################################# +# help for the first checkout. +############################################# +function first_checkout() +{ + mirror_name=$1 + git_url=$2 + project_dir=$3 + sync_script=$4 + + failed_msg "当前分支不是${mirror_name}镜像"; + + cat </dev/null 2>&1 ret=$?; if [[ 0 -ne $ret ]]; then - failed_msg "当前分支不是CSDN镜像"; - cat </dev/null 2>&1 ret=$?; if [[ 0 -ne $ret ]]; then - failed_msg "当前分支不是OSChina镜像"; - cat <