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

wuchunfu pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-seatunnel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 4282f2b  Enhance sed regexp with `-E` instead of `-r` (#92)
4282f2b is described below

commit 4282f2b9ca7fef855c6eec3d41ed5c369dc0873c
Author: Jiajie Zhong <[email protected]>
AuthorDate: Thu Mar 24 21:43:07 2022 +0800

    Enhance sed regexp with `-E` instead of `-r` (#92)
    
    -r could regexp replace in my linux server but
    could not success in my laptop, which using bash
    `GNU bash, version 5.1.8(1)-release`
---
 tools/build-docs.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/build-docs.sh b/tools/build-docs.sh
index 4bc30fa..a662c47 100644
--- a/tools/build-docs.sh
+++ b/tools/build-docs.sh
@@ -52,9 +52,9 @@ function replaceImagesPath(){
       if [ "${filePath##*.}"x = "md"x ]; then
         echo "===>>: Replace images path to /doc/image_en in ${filePath}"
         if [[ "$OSTYPE" == "darwin"* ]]; then
-          sed -r -i '' "s/(\.\.\/)*images/\/doc\/image_en/g" ${filePath}
+          sed -E -i '' "s/(\.\.\/)*images/\/doc\/image_en/g" ${filePath}
         else
-          sed -r -i "s/(\.\.\/)*images/\/doc\/image_en/g" ${filePath}
+          sed -E -i "s/(\.\.\/)*images/\/doc\/image_en/g" ${filePath}
         fi
       fi
     else

Reply via email to