From 274ee394e899a89e1807dd4d2d1ffc3217c73eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=BCtz?= Date: Tue, 24 Feb 2015 18:10:28 +0100 Subject: [PATCH] Don't let error message slip through when no certs have been downloaded --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index dc57005..2ea445d 100755 --- a/testssl.sh +++ b/testssl.sh @@ -1192,7 +1192,7 @@ server_defaults() { savedir=`pwd`; cd $TEMPDIR $OPENSSL s_client -showcerts $STARTTLS -connect $NODEIP:$PORT $SNI 2>/dev/null ("level" c ".crt")} /---END CERTIFICATE-----/{inc=0}' - nrsaved=`ls $TEMPDIR/level?.crt | wc -w` + nrsaved=`ls $TEMPDIR/level?.crt 2>/dev/null | wc -w` outln " # of certificates provided $nrsaved" cd $savedir