From: Antonio Quartulli Date: Sun, 16 Jul 2017 18:47:14 +0800 Message-Id: <20170716104714.2113-1-a@...2181...> Subject: [Openvpn-devel] [PATCH openvpn-build] fix test when white space is present List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net Cc: =?UTF-8?q?Samuli=20Sepp=C3=A4nen?= , Antonio Quartulli For some CHOST ret_want and ret_got may contain a whitespace. Add double quotes around ret_want to avoid messing up the test. Signed-off-by: Antonio Quartulli --- generic/gentoo.config-0.9.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/gentoo.config-0.9.8 b/generic/gentoo.config-0.9.8 index 2361ae6..7051886 100755 --- a/generic/gentoo.config-0.9.8 +++ b/generic/gentoo.config-0.9.8 @@ -45,7 +45,7 @@ if [ "$1" = "test" ] ; then ret_want=${c/*|} ret_got=$(CHOST=${CHOST} "$0") - if [ ${ret_want} = "${ret_got}" ] ; then + if [ "${ret_want}" = "${ret_got}" ] ; then echo "PASS: ${CHOST}" else echo "FAIL: ${CHOST}" -- 2.13.3