From 36f693fa6c3b28d16b866033fa4cf883d9308822 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 21 Dec 2018 02:52:49 -0500 Subject: cfgtest.sh: property test for a variable being empty. --- sofort/cfgtest.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sofort/cfgtest.sh b/sofort/cfgtest.sh index b4e5686..caa000a 100644 --- a/sofort/cfgtest.sh +++ b/sofort/cfgtest.sh @@ -114,7 +114,7 @@ cfgtest_header_presence() | sed -e 's/\./_/g' -e 's@/@_@g' \ | tr "[:lower:]" "[:upper:]") - if [ -z $cfgtest_internal_unit_test ]; then + if [ -z ${cfgtest_internal_unit_test:-} ]; then cfgtest_cflags_append "$mb_internal_str" else cfgtest_makevar_append "$mb_internal_str" @@ -135,7 +135,7 @@ cfgtest_header_absence() | sed -e 's/\./_/g' -e 's@/@_@g' \ | tr "[:lower:]" "[:upper:]") - if [ -z $cfgtest_internal_unit_test ]; then + if [ -z ${cfgtest_internal_unit_test:-} ]; then cfgtest_cflags_append "$mb_internal_str" else cfgtest_makevar_append "$mb_internal_str" @@ -162,7 +162,7 @@ cfgtest_interface_presence() | sed -e 's/\./_/g' \ | tr "[:lower:]" "[:upper:]") - if [ -z $cfgtest_internal_unit_test ]; then + if [ -z ${cfgtest_internal_unit_test:-} ]; then cfgtest_cflags_append "$mb_internal_str" else cfgtest_makevar_append "$mb_internal_str" @@ -198,7 +198,7 @@ cfgtest_decl_presence() | sed -e 's/\./_/g' \ | tr "[:lower:]" "[:upper:]") - if [ -z $cfgtest_internal_unit_test ]; then + if [ -z ${cfgtest_internal_unit_test:-} ]; then cfgtest_cflags_append "$mb_internal_str" else cfgtest_makevar_append "$mb_internal_str" -- cgit v1.2.3