Don't check daemons which link to /dev/null

This commit is contained in:
Bob Mottram 2016-12-06 20:09:17 +00:00
parent 41fbe7a9dc
commit 2475813aa0
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,7 @@
if [ -d "/lib" ];then
COUNT=$(find -L /lib \! -user root -exec ls -l {} \; |wc -l)
COUNT=$(find -L /lib \! -user root -exec ls -l {} \; | grep -v '> /dev/null' | wc -l)
if [ $COUNT -eq 0 ];then
:
@ -40,4 +40,3 @@ if [ -d "/usr/lib64" ];then
exit 1
fi
fi