regex modification : set the fact "pkgng_supported" to "true" for FreeBSD 9.x and 10.x
This commit is contained in:
parent
51f0f75a30
commit
7522070599
|
@ -4,7 +4,7 @@ Facter.add("pkgng_supported") do
|
|||
|
||||
setcode do
|
||||
kernel = Facter.value('kernelversion')
|
||||
if kernel =~ /^(9|10)/
|
||||
if kernel =~ /^(9|10)(\.[0-9])?/
|
||||
"true"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue