diff --git a/build/build_cfs_client.sh b/build/build_cfs_client.sh index 896c0aed..27c5d7f5 100755 --- a/build/build_cfs_client.sh +++ b/build/build_cfs_client.sh @@ -1,10 +1,9 @@ #!/bin/sh RootPath=$(cd "$(dirname $0)";pwd) -CfsVersion=2.0.0 test -e ${RootPath}/bin/cfs-client && exit 0 test -d ${RootPath}/chubaofs && rm -rf ${RootPath}/chubaofs -git clone https://github.com/chubaofs/chubaofs.git ${RootPath}/chubaofs && cd ${RootPath}/chubaofs && git checkout v${CfsVersion} +git clone https://github.com/chubaofs/chubaofs.git ${RootPath}/chubaofs && cd ${RootPath}/chubaofs ChubaoFSSrcPath=${RootPath}/chubaofs Out=`docker run -it --rm --privileged -v ${ChubaoFSSrcPath}:/root/go/src/github.com/chubaofs/chubaofs chubaofs/cfs-base:1.0.1 \ /bin/bash -c 'cd /root/go/src/github.com/chubaofs/chubaofs/build && bash ./build.sh > build.out 2>&1 && echo 0 || echo 1'`