aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ec2-api-tools.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-01-28 11:25:36 -0800
committerAdam Vandenberg2012-01-28 11:25:36 -0800
commit8451bd205eff832584f14f155e910b7f3551fd1e (patch)
tree5d44ca6afd438ee77d2dc194c493b1183357c1a5 /Library/Formula/ec2-api-tools.rb
parent0eaba2b4e11d36a8e5fc6a5e2340966401146c24 (diff)
downloadhomebrew-8451bd205eff832584f14f155e910b7f3551fd1e.tar.bz2
Normalize JAVA_HOME
Diffstat (limited to 'Library/Formula/ec2-api-tools.rb')
-rw-r--r--Library/Formula/ec2-api-tools.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/ec2-api-tools.rb b/Library/Formula/ec2-api-tools.rb
index 59f1c11a7..d179ae5c6 100644
--- a/Library/Formula/ec2-api-tools.rb
+++ b/Library/Formula/ec2-api-tools.rb
@@ -31,7 +31,7 @@ class AmazonWebServicesFormula < Formula
* On Bash, add them to `~/.bash_profile`.
* On Zsh, add them to `~/.zprofile` instead.
- export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
+ export JAVA_HOME="$(/usr/libexec/java_home)"
export EC2_PRIVATE_KEY="$(/bin/ls $HOME/.ec2/pk-*.pem)"
export EC2_CERT="$(/bin/ls $HOME/.ec2/cert-*.pem)"
export #{var_name}="#{var_value}"