mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-02 10:36:28 +00:00
VersionCheck: Fixes for Gentoo and the BSDs
This commit is contained in:
@@ -177,7 +177,7 @@ sub get_os_version {
|
||||
}
|
||||
}
|
||||
}
|
||||
elsif ( $platform =~ m/^(BSD|Darwin)$/ ) {
|
||||
elsif ( $platform =~ m/(?:BSD|^Darwin)$/ ) {
|
||||
my $rel = `uname -r`;
|
||||
$release = "$platform $rel";
|
||||
}
|
||||
@@ -192,6 +192,9 @@ sub get_os_version {
|
||||
}
|
||||
chomp($release);
|
||||
|
||||
# For Gentoo, which returns a value in quotes
|
||||
$release =~ s/^"|"$//g;
|
||||
|
||||
PTDEBUG && _d('OS version =', $release);
|
||||
return $release;
|
||||
}
|
||||
|
Reference in New Issue
Block a user