redshift: audit placement fix (#2818)

moved caveats method to before the plist block
This commit is contained in:
Domingo Moronta 2016-07-07 17:00:18 -07:00 committed by Dominyk Tiller
parent 13a061a99d
commit c02cef102c

View file

@ -42,6 +42,14 @@ class Redshift < Formula
pkgshare.install "redshift.conf.sample"
end
def caveats; <<-EOS.undent
A sample .conf file has been installed to #{opt_pkgshare}.
Please note redshift expects to read its configuration file from
#{ENV["HOME"]}/.config
EOS
end
plist_options :manual => "redshift"
def plist; <<-EOS.undent
@ -68,14 +76,6 @@ class Redshift < Formula
EOS
end
def caveats; <<-EOS.undent
A sample .conf file has been installed to #{opt_pkgshare}.
Please note redshift expects to read its configuration file from
#{ENV["HOME"]}/.config
EOS
end
test do
system "#{bin}/redshift", "-V"
end