From d1ae757240bfe0a8c9e45026e5cc330ae541bcd5 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 20 Aug 2015 18:50:30 +0200 Subject: Replaced -z for empty string testing --- include/tests_containers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/tests_containers') diff --git a/include/tests_containers b/include/tests_containers index ce350aee..c8c81fe0 100644 --- a/include/tests_containers +++ b/include/tests_containers @@ -119,7 +119,7 @@ # Check total of containers logtext "Test: checking total amount of Docker containers" DOCKER_CONTAINERS_TOTAL=`${DOCKERBINARY} info 2> /dev/null | grep "^Containers: " | awk '{ print $2 }'` - if [ ${DOCKER_CONTAINERS_TOTAL} -z ]; then + if [ "${DOCKER_CONTAINERS_TOTAL}" = "" ]; then DOCKER_CONTAINERS_TOTAL=0 fi logtext "Result: docker info shows ${DOCKER_CONTAINERS_TOTAL} containers" -- cgit v1.2.3