Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-08-20 19:50:30 +0300
committermboelen <michael@cisofy.com>2015-08-20 19:50:30 +0300
commitd1ae757240bfe0a8c9e45026e5cc330ae541bcd5 (patch)
tree0fb1f417b7d55aa58c1412d53c490cc32a212302 /include/tests_containers
parentafe30cf3a739f871d2685c2b6fb78b1f74ad9cc8 (diff)
Replaced -z for empty string testing
Diffstat (limited to 'include/tests_containers')
-rw-r--r--include/tests_containers2
1 files changed, 1 insertions, 1 deletions
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"