Merge pull request #74 from konstruktoid/filter_nil

'CapAdd=<nil>'
This commit is contained in:
Thomas Sjögren 2015-08-13 21:47:50 +02:00
commit 1c217b85be

View file

@ -92,7 +92,7 @@ else
for c in $containers; do
caps=$(docker inspect --format 'CapAdd={{ .HostConfig.CapAdd}}' "$c")
if [ "$caps" != "CapAdd=" -a "$caps" != "CapAdd=[]" -a "$caps" != "CapAdd=<no value>" ]; then
if [ "$caps" != 'CapAdd=' -a "$caps" != 'CapAdd=[]' -a "$caps" != 'CapAdd=<no value>' -a "$caps" != 'CapAdd=<nil>' ]; then
# If it's the first container, fail the test
if [ $fail -eq 0 ]; then
warn "$check_5_4"