mirror of
https://github.com/speed47/btrfs-list
synced 2024-09-30 04:43:31 +00:00
enh: exit early when no filesystems found
This commit is contained in:
parent
45a90860a1
commit
74004e01b9
|
@ -542,6 +542,11 @@ foreach (@{$cmd->{stdout}}) {
|
||||||
} ## end foreach (@{$cmd->{stdout}})
|
} ## end foreach (@{$cmd->{stdout}})
|
||||||
debug("FILESYSTEMS HASH DUMP 1:", Dumper \%filesystems);
|
debug("FILESYSTEMS HASH DUMP 1:", Dumper \%filesystems);
|
||||||
|
|
||||||
|
if (!%filesystems) {
|
||||||
|
print "No btrfs filesystem found.\n";
|
||||||
|
exit 0;
|
||||||
|
}
|
||||||
|
|
||||||
# now look for the mountpoints
|
# now look for the mountpoints
|
||||||
|
|
||||||
my %dev2mp;
|
my %dev2mp;
|
||||||
|
|
Loading…
Reference in a new issue