mirror of
https://github.com/webmin/webmin.git
synced 2026-05-27 00:20:30 +01:00
Merge pull request #746 from gnadelwartz/patch-5
base_version() fix possible suffix in webnin version
This commit is contained in:
@@ -764,6 +764,8 @@ Rounds a version number down to the nearest .01
|
||||
=cut
|
||||
sub base_version
|
||||
{
|
||||
#remove waning about (possible) postfixes from update-from-repo.sh
|
||||
$_[0] =~ s/[-a-z:_].*//gi;
|
||||
return sprintf("%.2f0", $_[0]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user