diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vdf | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -159,7 +159,7 @@ sub show_df_png { return; } -getopts('a:cfg', \%opts); +getopts('Aa:cfg', \%opts); $alpha = $opts{'a'} // 0; open(my $mounts_fh, '<', '/proc/mounts'); @@ -181,7 +181,9 @@ while (my $line = <$mounts_fh>) { } close($mounts_fh); -@mounts = grep { $_->[0] !~ qr{ ^ ( (root|tmp)fs | none ) $ }x } @mounts; +if (not $opts{'A'}) { + @mounts = grep { $_->[0] !~ qr{ ^ ( (root|tmp)fs | none ) $ }x } @mounts; +} if ($opts{'c'}) { show_df_console(); |