change != to -ne

This commit is contained in:
Brad Warren 2017-01-05 11:17:20 -08:00
parent f6289dbba8
commit 6923e2eb03

View file

@ -28,12 +28,12 @@ sudo ../../../venv/bin/certbot certificates -v --config-dir sample-config
TEST_CERTS=`sudo ../../../venv/bin/certbot certificates --config-dir sample-config | grep TEST_CERT | wc -l`
REVOKED=`sudo ../../../venv/bin/certbot certificates --config-dir sample-config | grep REVOKED | wc -l`
if [ "$TEST_CERTS" != 2 ] ; then
if [ "$TEST_CERTS" -ne 2 ] ; then
echo Did not find two test certs as expected ("$TEST_CERTS")
exit 1
fi
if [ "$REVOKED" != 1 ] ; then
if [ "$REVOKED" -ne 1 ] ; then
echo Did not find one revoked cert as expected ("$REVOKED")
exit 1
fi