projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f26d5f
)
Redirect stdout to /dev/null too
author
Tollef Fog Heen
<tfheen@err.no>
Thu, 29 Dec 2016 07:52:53 +0000
(08:52 +0100)
committer
Tollef Fog Heen
<tfheen@err.no>
Thu, 29 Dec 2016 07:52:53 +0000
(08:52 +0100)
modules/debian-org/lib/facter/software.rb
patch
|
blob
|
history
diff --git
a/modules/debian-org/lib/facter/software.rb
b/modules/debian-org/lib/facter/software.rb
index
b8d8c7d
..
0045a9e
100644
(file)
--- a/
modules/debian-org/lib/facter/software.rb
+++ b/
modules/debian-org/lib/facter/software.rb
@@
-157,6
+157,6
@@
Facter.add("systemd") do
end
Facter.add("tor_ge_0_2_9") do
setcode do
- system(%{dpkg -l tor
2>/dev/null
&& dpkg --compare-versions $(dpkg-query -W -f='${Version}' tor) ge 0.2.9})
+ system(%{dpkg -l tor
>/dev/null 2>&1
&& dpkg --compare-versions $(dpkg-query -W -f='${Version}' tor) ge 0.2.9})
end
end