juzhiyuan commented on a change in pull request #215: URL: https://github.com/apache/skywalking-website/pull/215#discussion_r575804306
########## File path: doc.sh ########## @@ -0,0 +1,32 @@ +#!/bin/bash + + +repo=$1 +gitUrl=$2 +commitId=$3 +localPath=$4 +sidebarConfigFile=$5 + + +if [ ! -d "./tmp" ]; then + mkdir ./tmp +fi +cd ./tmp + +if [ ! -d "./${repo}" ]; then + git clone ${gitUrl} + cd ./${repo} + else + cd ./${repo} + git pull origin master +fi + +git reset --hard ${commitId} + +if [ -d "../../${localPath}" ]; then + rm -rf ../../${localPath} +fi +mkdir -p ../../${localPath} Review comment: Thanks! I will take a look :) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org