Fix the bad value of EC2_HOME in the standard_instructions

Change EC2_HOME's value from 'export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.6.12.0/"'
to 'export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.6.12.0/libexec"'

Avoide the wrong value of EC_HOME caused by
024208466bfb4ffb479d48709caecc6a1e85ba4d

Closes Homebrew/homebrew#25918.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
sowawa 2014-01-15 19:05:20 +09:00 committed by Adam Vandenberg
parent 4c3c4ac012
commit 21b2fdface

View File

@ -28,7 +28,7 @@ class AmazonWebServicesFormula < Formula
end end
# Use this method to generate standard caveats. # Use this method to generate standard caveats.
def standard_instructions home_name def standard_instructions home_name, home_value=libexec
<<-EOS.undent <<-EOS.undent
Before you can use these tools you must export some variables to your $SHELL Before you can use these tools you must export some variables to your $SHELL
and download your X.509 certificate and private key from Amazon Web Services. and download your X.509 certificate and private key from Amazon Web Services.
@ -46,7 +46,7 @@ class AmazonWebServicesFormula < Formula
export JAVA_HOME="$(/usr/libexec/java_home)" export JAVA_HOME="$(/usr/libexec/java_home)"
export EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)" export EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)"
export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)" export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)"
export #{home_name}="#{libexec}" export #{home_name}="#{home_value}"
EOS EOS
end end
end end