Hi,
On Thu, Jun 18, 2020 at 10:13:34AM +0000, Belal, Awais wrote:
> > I'd change the script to run with bash and "set -euo pipefail" to capture
> > errors like this early.
>
> The toolchain-shar-relocate script comes in through the replacement of
> SDK_PRE_INSTALL_COMMAND in toolchain-shar-extract so it cannot decide to use
> bash itself. Also, I don't think it would be a good idea to introduce a
> specific shell binding for such scripts.
I've come to the conclusion over the last 20 years that only way to maintain
sanity with shell scripts is "set -euxo pipefail" right after #!/bin/bash :)
Might work with other shells too but on Linux (build) systems bash is always
there.
Tiny embedded targets are a different story...
But you decide which path to take in this case.
Cheers,
-Mikko
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#139638):
https://lists.openembedded.org/g/openembedded-core/message/139638
Mute This Topic: https://lists.openembedded.org/mt/74946187/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-