Skip to content

Commit

Permalink
sshguard: fix MacOS references.
Browse files Browse the repository at this point in the history
Needed after Homebrew/brew#16306.
  • Loading branch information
MikeMcQuaid authored and Bo98 committed Dec 13, 2023
1 parent b16eeb5 commit a88ad12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/s/sshguard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def install
cp "examples/sshguard.conf.sample", "examples/sshguard.conf"
inreplace "examples/sshguard.conf" do |s|
s.gsub!(/^#BACKEND=.*$/, "BACKEND=\"#{opt_libexec}/sshg-fw-pf\"")
if MacOS.version >= :sierra
if OS.mac? && MacOS.version >= :sierra
s.gsub! %r{^#LOGREADER="/usr/bin/log}, "LOGREADER=\"/usr/bin/log"
else
s.gsub!(/^#FILES.*$/, "FILES=/var/log/system.log")
Expand Down

0 comments on commit a88ad12

Please sign in to comment.