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.
The current documentation uses
shto run scripts that rely on Bash syntax.When following the guide on Ubuntu/Debian, running:
fails with errors like:
This happens because on Ubuntu/Debian,
shusually points todash, whileldb_toolchain_gen.shuses Bash-specific syntax such as[[ ]].I can submit a PR for this.