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 <s...@chromium.org>
> Reviewed-by: Tom Rini <tr...@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to