mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
11 lines
163 B
Ruby
11 lines
163 B
Ruby
output = %x{apt-get -v 2>&1}
|
|
|
|
if $?.exitstatus and output.match(/apt (\d+\.\d+\.\d+).*/)
|
|
|
|
Facter.add("apt_version") do
|
|
setcode do
|
|
$1
|
|
end
|
|
end
|
|
end
|