File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ install_completions() {
54
54
compdir=" /usr/share/bash-completion/completions"
55
55
elif [[ -d " /usr/local/etc/bash_completion.d" ]]; then
56
56
compdir=" /usr/local/etc/bash_completion.d"
57
- elif command -v brew & > /dev/null; then
57
+ elif command -v brew & > /dev/null && [[ -d " $( brew --prefix ) /etc/bash_completion.d " ]] ; then
58
58
compdir=" $( brew --prefix) /etc/bash_completion.d"
59
59
else
60
60
compdir=' '
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ get_comp_dir() {
14
14
echo " /usr/share/bash-completion/completions"
15
15
elif [[ -d " /usr/local/etc/bash_completion.d" ]]; then
16
16
echo " /usr/local/etc/bash_completion.d"
17
- elif command -v brew & > /dev/null; then
17
+ elif command -v brew & > /dev/null && [[ -d " $( brew --prefix ) /etc/bash_completion.d " ]] ; then
18
18
echo " $( brew --prefix) /etc/bash_completion.d"
19
19
else
20
20
echo ' '
You can’t perform that action at this time.
0 commit comments