diff options
| author | Jack Nagel | 2014-04-24 21:36:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-24 21:36:59 -0500 |
| commit | 804c03ca71be4af9369dcd679cc77ade7e860d77 (patch) | |
| tree | fbf90d87aa8599770d31bbc647af0bb6db3764dd /Library | |
| parent | f075831de7338874e9294e000a3353effa2ee308 (diff) | |
| download | homebrew-804c03ca71be4af9369dcd679cc77ade7e860d77.tar.bz2 | |
Fix tap completion when there aren't any taps
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index daaacd861..54ce7fe09 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -67,6 +67,7 @@ __brew_complete_formulae () local tf file for file in ${taps}/*/*/*.rb ${taps}/*/*/Formula/*.rb ${taps}/*/*/HomebrewFormula/*.rb; do + [ -f "$file" ] || continue file=${file/"Formula/"/} file=${file/"HomebrewFormula/"/} file=${file#${lib}/Taps/} @@ -115,6 +116,7 @@ __brew_complete_tapped () local dir taps for dir in ${taplib}/*/*; do + [ -d "$dir" ] || continue dir=${dir#${taplib}/} dir=${dir/homebrew-/} taps="$taps $dir" |
