Added regexp

This commit is contained in:
ismael.moreno 2019-11-19 17:24:40 +01:00
parent aa4ae996d2
commit 936dc728dd

View File

@ -57,7 +57,11 @@ else
{
if (substr($fs,0,1) eq '-')
{
$excluded_filesystems{substr($fs,1,)} = '-1%';
my $mount_name=substr($fs,1,);
my @mount_all= split /\n/, `df -khTP | tail -n +2 | awk '{print \$7}'| grep -i "$mount_name"`;
foreach (@mount_all){
$excluded_filesystems{$_} = '-1%';
}
}
else
{