mirror of
https://github.com/speed47/btrfs-list
synced 2024-09-28 20:03:32 +00:00
fix: only check vX.Y btrfs version scheme
as the version perl module only handles perl-style formatted version strings, aka x.y.z, and not other formats that could happen such as "-rc", etc.
This commit is contained in:
parent
dd9f9bd7ac
commit
45a90860a1
|
@ -437,7 +437,7 @@ if ($wantedFs) {
|
|||
# check btrfs-progs version
|
||||
|
||||
my $cmd = run_cmd(fatal => 1, cmd => [qw{ btrfs --version }]);
|
||||
my ($version) = $cmd->{stdout}->[0] =~ /v([0-9.]+)/;
|
||||
my ($version) = $cmd->{stdout}->[0] =~ /v(\d+\.\d+)/;
|
||||
|
||||
if (version->declare($version)->numify lt version->declare("3.18")->numify && !$opt_ignore_version_check) {
|
||||
print STDERR "FATAL: you're using an old version of btrfs-progs, v$version, "
|
||||
|
|
Loading…
Reference in a new issue