]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oe-setup-builddir: Avoid shellcheck warnings
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Tue, 6 Sep 2022 14:58:53 +0000 (16:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Sep 2022 13:55:51 +0000 (14:55 +0100)
commita5aa5065d5ebe9f320cb1415c6ff4d5d5772f630
tree2869e93b5a06a6293347891ffd0b0b237772b887
parent670f255bf639ca19a396ee67ec7d78094da2f576
oe-setup-builddir: Avoid shellcheck warnings

This avoid the following warnings:

* SC2086: Double quote to prevent globbing and word splitting.
* SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
* SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
* SC2236: Use -n instead of ! -z.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-setup-builddir