Permalink
Browse files

bash-completion2: fix Homebrew completion installation

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent 5ad474b commit adda1b1ce29f4dc0fe06cf04565245c301af7e9a @jacknagel jacknagel committed Aug 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 bash-completion2.rb
View
5 bash-completion2.rb
@@ -14,7 +14,10 @@ def install
ENV.deparallelize
system "make install"
- ln_s HOMEBREW_REPOSITORY/'Contributions/brew_bash_completion.sh', share/'bash-completion/completions/brew'
+ brew_bash_completion = HOMEBREW_REPOSITORY/'Library/Contributions/brew_bash_completion.sh'
+ compdir = HOMEBREW_PREFIX/'share/bash-completion/completions'
+ (compdir/'brew').unlink
+ compdir.install_symlink brew_bash_completion => 'brew'
end
def caveats; <<-EOS.undent

0 comments on commit adda1b1

Please sign in to comment.