Skip to content

[Docs] Fix shell invocation in LDB toolchain compilation guide #3538

@jonathanhu237

Description

@jonathanhu237

The current documentation uses sh to run scripts that rely on Bash syntax.

When following the guide on Ubuntu/Debian, running:

sh ldb_toolchain_gen.sh /path/to/ldb_toolchain/

fails with errors like:

ldb_toolchain_gen.sh: 42: [[: not found
ldb_toolchain_gen.sh: 47: [[: not found
ldb_toolchain_gen.sh: 70: [: x86_64: unexpected operator
ldb_toolchain_gen.sh: 72: [: x86_64: unexpected operator
Unknown architecture: x86_64

This happens because on Ubuntu/Debian, sh usually points to dash, while ldb_toolchain_gen.sh uses Bash-specific syntax such as [[ ]].

I can submit a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions