summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/facter/systemd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/systemd.rb b/lib/facter/systemd.rb
index b4b11fb..d488efb 100644
--- a/lib/facter/systemd.rb
+++ b/lib/facter/systemd.rb
@@ -30,6 +30,6 @@ end
Facter.add(:systemd_version) do
confine :systemd => true
setcode do
- Facter::Core::Execution.exec("systemctl --version | grep 'systemd' | awk '{ print $2 }'")
+ Facter::Core::Execution.exec("systemctl --version | awk '/systemd/{ print $2 }'")
end
end