This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 1d818ad3334 [fix](community-docs) invoke ldb_toolchain_gen.sh with
bash, not sh (#3754)
1d818ad3334 is described below
commit 1d818ad3334fa8f61e24e85801386aecc09be4b4
Author: boluor <[email protected]>
AuthorDate: Sun May 24 15:27:23 2026 -0700
[fix](community-docs) invoke ldb_toolchain_gen.sh with bash, not sh (#3754)
## Summary
\`ldb_toolchain_gen.sh\` uses bash-only syntax (\`[[ ... ]]\` etc.). On
distros where \`/bin/sh\` is \`dash\` (Ubuntu, Debian), running it as
\`sh ldb_toolchain_gen.sh /path/...\` fails with:
\`\`\`
ldb_toolchain_gen.sh: 42: [[: not found
Unknown architecture: x86_64
\`\`\`
Switch the invocation to \`bash ldb_toolchain_gen.sh ...\` in the x86_64
and aarch64 compilation guides, EN + zh.
Fixes #3538
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
---
community/source-install/compilation-arm.mdx | 4 ++--
community/source-install/compilation-with-ldb-toolchain.md | 2 +-
.../current/source-install/compilation-arm.mdx | 4 ++--
.../current/source-install/compilation-with-ldb-toolchain.md | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/community/source-install/compilation-arm.mdx
b/community/source-install/compilation-arm.mdx
index 37ec585bd81..b4b8afb8959 100644
--- a/community/source-install/compilation-arm.mdx
+++ b/community/source-install/compilation-arm.mdx
@@ -175,7 +175,7 @@ mkdir /opt/software
cd /opt/tools
# Download the ARM version of LDB Toolchain
wget
https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.21/ldb_toolchain_gen.aarch64.sh
&& \
- sh ldb_toolchain_gen.aarch64.sh /opt/software/ldb_toolchain/
+ bash ldb_toolchain_gen.aarch64.sh /opt/software/ldb_toolchain/
```
</div>
<div>
@@ -317,7 +317,7 @@ sudo dpkg-reconfigure dash
cd /opt/tools
# Download the ARM version of LDB Toolchain
wget
https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.21/ldb_toolchain_gen.aarch64.sh
&& \
- sh ldb_toolchain_gen.aarch64.sh /opt/software/ldb_toolchain/
+ bash ldb_toolchain_gen.aarch64.sh /opt/software/ldb_toolchain/
```
</div>
<div>
diff --git a/community/source-install/compilation-with-ldb-toolchain.md
b/community/source-install/compilation-with-ldb-toolchain.md
index 629aa5924b8..40caadf863e 100644
--- a/community/source-install/compilation-with-ldb-toolchain.md
+++ b/community/source-install/compilation-with-ldb-toolchain.md
@@ -81,7 +81,7 @@ Project home page:
<https://github.com/amosbird/ldb_toolchain_gen>
Run the script to generate the toolchain:
```bash
-sh ldb_toolchain_gen.sh /path/to/ldb_toolchain/
+bash ldb_toolchain_gen.sh /path/to/ldb_toolchain/
```
Here, `/path/to/ldb_toolchain/` is the target installation directory. After
the script runs successfully, the following structure is generated in that
directory:
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-arm.mdx
b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-arm.mdx
index badbece3a90..259d5a8cbc4 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-arm.mdx
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-arm.mdx
@@ -175,7 +175,7 @@ mkdir /opt/software
cd /opt/tools
# 下载 LDB Toolchain ARM 版本
wget
https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.21/ldb_toolchain_gen.aarch64.sh
&& \
- sh ldb_toolchain_gen.aarch64.sh /opt/software/ldb_toolchain/
+ bash ldb_toolchain_gen.aarch64.sh /opt/software/ldb_toolchain/
```
</div>
<div>
@@ -317,7 +317,7 @@ sudo dpkg-reconfigure dash
cd /opt/tools
# 下载 LDB Toolchain ARM 版本
wget
https://github.com/amosbird/ldb_toolchain_gen/releases/download/v0.21/ldb_toolchain_gen.aarch64.sh
&& \
- sh ldb_toolchain_gen.aarch64.sh /opt/software/ldb_toolchain/
+ bash ldb_toolchain_gen.aarch64.sh /opt/software/ldb_toolchain/
```
</div>
<div>
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md
b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md
index 6f000253efb..b1c9f9201fd 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/source-install/compilation-with-ldb-toolchain.md
@@ -81,7 +81,7 @@ LDB Toolchain 全称 **Linux Distribution Based Toolchain
Generator**,提供
执行脚本生成工具链:
```bash
-sh ldb_toolchain_gen.sh /path/to/ldb_toolchain/
+bash ldb_toolchain_gen.sh /path/to/ldb_toolchain/
```
其中 `/path/to/ldb_toolchain/` 为目标安装目录。执行成功后,该目录下会生成如下结构:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]