summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-21 02:52:49 -0500
committermidipix <writeonce@midipix.org>2018-12-24 19:22:42 -0500
commit36f693fa6c3b28d16b866033fa4cf883d9308822 (patch)
treedd7412d0b65ef63b042356478c513429ff7a9a34
parent08802892a1be1879c6bd437a2adc7504514b7ec1 (diff)
downloadsofort-36f693fa6c3b28d16b866033fa4cf883d9308822.tar.bz2
sofort-36f693fa6c3b28d16b866033fa4cf883d9308822.tar.xz
cfgtest.sh: property test for a variable being empty.
-rw-r--r--sofort/cfgtest.sh8
1 files 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"