[PATCH v3 18/23] travis/gitlab/azure: Use bash to avoid a_test_which_does_not_exist
Tom Rini
trini at konsulko.com
Mon Mar 23 14:14:00 CET 2020
On Wed, Mar 18, 2020 at 09:42:56AM -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/20200323/a86c8f9c/attachment.sig>
More information about the U-Boot
mailing list