From b8f6ef59c5f59b9ea1ab029fd6b7cec949ab29ca Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 30 Mar 2014 19:09:04 +0800 Subject: [PATCH] update readme, refine the chinese summary --- README.md | 4 ++-- trunk/scripts/csdn.mirror.sh | 20 ++++++++++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d6ee1b611..731bd1e0c 100755 --- a/README.md +++ b/README.md @@ -4,13 +4,13 @@ 下载发布版(国内阿里云镜像): [Centos6-x86_64](http://demo.chnvideo.com:8085/srs/releases/files/SRS-CentOS6-x86_64-0.9.30.zip) 其他[more...](http://demo.chnvideo.com:8085/srs/releases/) -获得源码(github): [simple-rtmp-server](https://github.com/winlinvip/simple-rtmp-server) +获得源码(github): [https://github.com/winlinvip/simple-rtmp-server](https://github.com/winlinvip/simple-rtmp-server) ```bash git clone https://github.com/winlinvip/simple-rtmp-server.git ``` -获得源码(国内CSDN镜像): [simple-rtmp-server](https://code.csdn.net/winlinvip/srs-csdn/events) +获得源码(国内CSDN镜像): [https://code.csdn.net/winlinvip/srs-csdn](https://code.csdn.net/winlinvip/srs-csdn) ```bash git clone https://code.csdn.net/winlinvip/srs-csdn.git diff --git a/trunk/scripts/csdn.mirror.sh b/trunk/scripts/csdn.mirror.sh index a55fa55ec..dca6e2f79 100755 --- a/trunk/scripts/csdn.mirror.sh +++ b/trunk/scripts/csdn.mirror.sh @@ -4,7 +4,8 @@ echo "更新CSDN镜像的脚本" # 创建CSDN镜像的过程如下: # 1. 在CSDN上创建项目,从https://github.com/winlinvip/simple-rtmp-server拷贝过来。 -# 2. 在本地虚拟机上:git clone git@code.csdn.net:winlinvip/srs-csdn.git +# 2. 在本地虚拟机上: +# git clone git@code.csdn.net:winlinvip/srs-csdn.git # 3. 创建同步的branch: # git remote add upstream https://github.com/winlinvip/simple-rtmp-server.git # git fetch upstream @@ -28,7 +29,22 @@ ret=$?; if [[ $ret -ne 0 ]]; then exit $ret; fi ok_msg "导入脚本成功" git remote -v|grep code.csdn.net >/dev/null 2>&1 -ret=$?; if [[ 0 -ne $ret ]]; then failed_msg "当前分支不是CSDN镜像"; exit 0; fi +ret=$?; if [[ 0 -ne $ret ]]; then + failed_msg "当前分支不是CSDN镜像"; + cat <