]> code.ossystems Code Review - openembedded-core.git/commit
icecc-env: don't raise error when icecc not installed
authorAdam Trhon <adam.trhon@tbs-biometrics.com>
Tue, 12 Feb 2019 12:14:58 +0000 (12:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Feb 2019 08:19:29 +0000 (08:19 +0000)
commit27a8c14039970105238b66b9f3025435cb7e8a58
tree3adccb0ddc1cb85a1813583680033fddfa131bab
parentea98fd17ae38efca13ce97c2e0eaacb8cfde597d
icecc-env: don't raise error when icecc not installed

When icecc is not installed, the `which icecc` command in icecc-env.sh
returns nonzero. This happens when environment is being sourced. When
the terminal has `set -e`, the whole script fails and terminal is
closed.

Fix this by ignoring errors from the which command.

Signed-off-by: Adam Trhon <adam.trhon@tbs-biometrics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/icecc-toolchain/icecc-toolchain/icecc-env.sh