You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2023/01/29 14:37:00 UTC

[iotdb] branch test_doc_pic updated: Fix bug

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

haonan pushed a commit to branch test_doc_pic
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/test_doc_pic by this push:
     new 3f1b28b4e5 Fix bug
3f1b28b4e5 is described below

commit 3f1b28b4e5e67e3b75abe83fa12eeca00d5ff71e
Author: HTHou <hh...@outlook.com>
AuthorDate: Sun Jan 29 22:35:53 2023 +0800

    Fix bug
---
 site/replace-picture-urls.sh | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/site/replace-picture-urls.sh b/site/replace-picture-urls.sh
index 3253df14f3..807875dd08 100755
--- a/site/replace-picture-urls.sh
+++ b/site/replace-picture-urls.sh
@@ -17,8 +17,7 @@
 # specific language governing permissions and limitations
 # under the License.
 #
-grep "?raw=true" -rl --include="*/target/vue-source/**/Master/**/*.md"
-sed -i 's/github.com\/apache\/iotdb-bin-resources\/blob\/main\//gitbox.apache.org\/repos\/asf?p=iotdb-bin-resources.git;a=blob_plain;f=/g' `grep "github.com\/apache\/iotdb-bin-resources\/blob\/main\/" -rl --include="*/target/vue-source/**/Master/**/*.md"`
-sed -i 's/github.com\/apache\/iotdb-bin-resources\/blob\/main\//gitbox.apache.org\/repos\/asf?p=iotdb-bin-resources.git;a=blob_plain;f=/g' `grep "github.com\/apache\/iotdb-bin-resources\/blob\/main\/" -rl --include="*/target/vue-source/**/V1*/**/*.md"`
-sed -i 's/?raw=true//g' `grep "?raw=true" -rl --include="*/target/vue-source/**/Master/**/*.md"`
-sed -i 's/?raw=true//g' `grep "?raw=true" -rl --include="*/target/vue-source/**/V1*/**/*.md"`
\ No newline at end of file
+find ./target/vue-source/src -name "*.md" -path "**/Master/**" -print0 | xargs sed -i.bak 's/github.com\/apache\/iotdb-bin-resources\/blob\/main\//gitbox.apache.org\/repos\/asf?p=iotdb-bin-resources.git;a=blob_plain;f=/g'
+find ./target/vue-source/src -name "*.md" -path "**/Master/**" -print0 | xargs sed -i.bak 's/?raw=true//g'
+find ./target/vue-source/src -name "*.md" -path "**/V1*/**" -print0 | xargs sed -i.bak 's/github.com\/apache\/iotdb-bin-resources\/blob\/main\//gitbox.apache.org\/repos\/asf?p=iotdb-bin-resources.git;a=blob_plain;f=/g'
+find ./target/vue-source/src -name "*.md" -path "**/V1*/**" -print0 | xargs sed -i.bak 's/?raw=true//g'
\ No newline at end of file