elasticsearch: rubocop tweaks.

This commit is contained in:
Mike McQuaid 2016-10-22 13:33:53 +01:00
parent 81a002bf86
commit 4797cd5fe0

View file

@ -62,7 +62,7 @@ class Elasticsearch < Formula
plugin=(build.devel? || build.head?) ? "#{libexec}/bin/elasticsearch-plugin" : "#{libexec}/bin/plugin"
inreplace plugin do |s|
# Add the proper ES_CLASSPATH configuration
s.sub!(/SCRIPT="\$0"/, %(SCRIPT="$0"\nES_CLASSPATH=#{libexec}/lib))
s.sub!(/SCRIPT="\$0"/, %Q(SCRIPT="$0"\nES_CLASSPATH=#{libexec}/lib))
# Replace paths to use libexec instead of lib
s.gsub!(%r{\$ES_HOME/lib/}, "$ES_CLASSPATH/")
end