1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

t: ignore empty files

This commit is contained in:
Steve Schnepp 2019-07-27 21:03:42 +02:00
parent 9cd0bba835
commit f42fdaa669

View file

@ -18,6 +18,7 @@ sub wanted {
( ( $dev, $ino, $mode, $nlink, $uid, $gid ) = lstat($_) ) ( ( $dev, $ino, $mode, $nlink, $uid, $gid ) = lstat($_) )
&& -f _ && -f _
&& -s _
&& ( ( $interpreter, $arguments ) = hashbang("$_") ) && ( ( $interpreter, $arguments ) = hashbang("$_") )
&& ($interpreter) && ($interpreter)
&& ++$num_plugins && ++$num_plugins