diff options
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" |
