From afacf0ed7b0a03a98c40baaff3f10120cd20b9ea Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Fri, 26 Feb 2016 18:20:41 -0500
Subject: build system: configure, host.sh: use modern portable shell idioms.

---
 sysinfo/host/host.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'sysinfo/host')

diff --git a/sysinfo/host/host.sh b/sysinfo/host/host.sh
index 5d963c9..e4079ee 100755
--- a/sysinfo/host/host.sh
+++ b/sysinfo/host/host.sh
@@ -10,7 +10,7 @@ host_test()
 	mb_hdrdir=$(pwd)/build
 	mkdir -p $mb_hdrdir || exit 2
 
-	if [ x"$mb_compiler" = x ]; then
+	if [ -z "$mb_compiler" ]; then
                 echo "config error: compiler not set."
 		exit 2
 	fi
@@ -42,7 +42,7 @@ host_endian_h()
 		-E - > /dev/null 2>/dev/null \
 		&& mb_hosthdr='machine/'$mb_header
 
-	if [ x"$mb_hosthdr" = x ]; then
+	if [ -z "$mb_hosthdr" ]; then
 		error_msg "config error: could not find an alternate <$mb_header>."
 		exit 2
 	fi
-- 
cgit v1.2.3