From e7c4f16f9ec2eca482c9e4aaa41e7a4e87f57f4f Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 3 Jul 2019 22:50:44 +0200 Subject: [PATCH] coverage.sh: Simplify if statement Conistent with unicode_enabled check above --- expat/coverage.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/expat/coverage.sh b/expat/coverage.sh index 413782b0..68f2dc74 100755 --- a/expat/coverage.sh +++ b/expat/coverage.sh @@ -41,9 +41,8 @@ _configure() { ${unicode_enabled} \ && configure_args+=( CPPFLAGS='-DXML_UNICODE -DXML_UNICODE_WCHAR_T' ) - if [[ "${xml_attr_info_enabled}" = true ]]; then - configure_args+=( --enable-xml-attr-info ) - fi + ${xml_attr_info_enabled} \ + && configure_args+=( --enable-xml-attr-info ) if [[ ${xml_context} -eq 0 ]]; then configure_args+=( --disable-xml-context ) -- 2.40.0