Skip to content

Commit

Permalink
Merge pull request #78 from rexdf/master
Browse files Browse the repository at this point in the history
sometime compare an empty string will fail with 'unary operator expected'
  • Loading branch information
txthinking committed Apr 4, 2015
2 parents e9aafd6 + fddff05 commit a7a46e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7a46e7

Please sign in to comment.