From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 16 Mar 2020 17:24:27 -0400 Subject: [PATCH v2 18/23] travis/gitlab/azure: Use bash to avoid a_test_which_does_not_exist In-Reply-To: <20200315234303.18598-15-sjg@chromium.org> References: <20200315234303.18598-1-sjg@chromium.org> <20200315234303.18598-15-sjg@chromium.org> Message-ID: <20200316212427.GP12423@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 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: