From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 11 Apr 2020 11:22:01 -0400 Subject: [PATCH v3 18/23] travis/gitlab/azure: Use bash to avoid a_test_which_does_not_exist In-Reply-To: <20200318154302.16389-15-sjg@chromium.org> References: <20200318154302.16389-1-sjg@chromium.org> <20200318154302.16389-15-sjg@chromium.org> Message-ID: <20200411152201.GS8031@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: