tidy doesn't remove "!()" matches

asked 2018-05-09 04:27:27 -0500

ivoR gravatar image

Hi Group

I try to remove all "ifcfg-" files except these where I need on the servers:

        tidy { "delete-unused-network-interfaces":
                path    => "/etc/sysconfig/network-scripts/",
                matches => [ "ifcfg-!(eth?|lo|bond?)" ],
                recurse => true,
                rmdirs  => false,

But it doesn't remove any files, same content with

                matches => [ "ifcfg-eno?" ],

works, what I doing wrong?

gruss ivo

edit retag flag offensive close merge delete