[PATCH v2 18/23] travis/gitlab/azure: Use bash to avoid a_test_which_does_not_exist
Tom Rini
trini at konsulko.com
Mon Mar 16 22:24:27 CET 2020
On Sun, Mar 15, 2020 at 05:42:58PM -0600, Simon Glass wrote:
> Bash allows for variables to expand only if non-empty:
>
> $ var=test
> $ echo ${var:+"$var"}
> test
> $ echo ${var:+"-k $var"}
> -k test
> $ var=
> $ echo ${var:+"-k $var"}
>
> Use this feature to avoid the workaround.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200316/6be2a35a/attachment.sig>
More information about the U-Boot
mailing list