This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch fix/assets-path
in repository https://gitbox.apache.org/repos/asf/pulsar.git

commit af2694139bd4b52bfef77a38a65d22cbe9d1387c
Author: Li Li <urf...@apache.org>
AuthorDate: Tue May 24 16:48:47 2022 +0800

    update start.sh
    
    Signed-off-by: Li Li <urf...@apache.org>
---
 site2/website/start.sh | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/site2/website/start.sh b/site2/website/start.sh
index b8012dd208d..229f4318419 100755
--- a/site2/website/start.sh
+++ b/site2/website/start.sh
@@ -6,13 +6,21 @@ cd .preview
 
 if [ -d "$ROOT_DIR/site2/.preview/pulsar-site" ]; then
     cd pulsar-site
-    git checkout .
-    git pull origin main
+    # git checkout .
+    # git pull origin main
 else
     git clone -b main --depth 1 https://github.com/apache/pulsar-site.git
 fi
 
 cd $ROOT_DIR/site2/.preview/pulsar-site/site2/website-next
 
-sh scripts/sync-docs.sh $ROOT_DIR/site2/
+sh scripts/sync-docs.sh $ROOT_DIR/site2
+
+if [ "$?" = "0" ]; then
+    echo "full sync done..."
+else
+    echo "Error: start fail, please update your local pulsar repo by run cmd: 
git pull" 1>&2
+    exit 1
+fi
+
 node scripts/watch.js $ROOT_DIR/site2 $@

Reply via email to