From fddff05863de05535d53d605b5574c432c155b2d Mon Sep 17 00:00:00 2001 From: rexdf Date: Fri, 3 Apr 2015 19:52:50 +0800 Subject: [PATCH] =?UTF-8?q?sometime=20compare=20an=20empty=20string=20will?= =?UTF-8?q?=20fail=20with=20'unary=20operator=20expected'=20=E6=9F=90?= =?UTF-8?q?=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B=E4=BC=9A=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E6=AF=94=E8=BE=83=E7=A9=BA=E4=B8=B2=E5=92=8C=EF=BC=8C=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E3=80=82=20:four=5Fleaf=5Fclover:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/select.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/select.sh b/scripts/select.sh index 0e966672..a20ed2f4 100755 --- a/scripts/select.sh +++ b/scripts/select.sh @@ -43,7 +43,7 @@ do continue fi cer=$(curl https://$ip 2>&1 | grep -Po "'\S*'" |head -1|cut -d \' -f 2) - if [ $cer != $domain ] + if [ "$cer" != $domain ] then continue fi