diff options
| author | Mike McQuaid | 2013-10-19 13:54:49 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-19 13:54:49 +0100 |
| commit | 1c8f6b68cc8c887c9585267d121f1d27e38d1b2a (patch) | |
| tree | a2908bcade8254ec6e091b00f4a6e914fda986f9 | |
| parent | c1be53efae4a99d20a52e1cfdf30005998919d0a (diff) | |
| download | homebrew-1c8f6b68cc8c887c9585267d121f1d27e38d1b2a.tar.bz2 | |
formula: fix git_etc bash_completion handling.
| -rw-r--r-- | Library/Homebrew/formula.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 487af9f8b..677ee99e4 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -170,7 +170,10 @@ class Formula # generally we don't want var stuff inside the keg def var; HOMEBREW_PREFIX+'var' end - def bash_completion; prefix+'etc/bash_completion.d' end + def bash_completion + etc = ENV['HOMEBREW_GIT_ETC'] ? etc : prefix+'etc' + etc+'bash_completion.d' + end def zsh_completion; share+'zsh/site-functions' end # for storing etc, var files for later copying from bottles |
