File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,12 @@ do-init() {
48
48
echo_posix_shell_variables
49
49
cat << -"EOF "
50
50
# bpm packages completions
51
- for f in "$BPM_ROOT"/cellar/completions/bash/?*.{sh,bash}; do
52
- source "$f"
53
- done
54
- unset f
51
+ if [ -d "$BPM_ROOT/cellar/completions/bash" ]; then
52
+ for f in "$BPM_ROOT"/cellar/completions/bash/?*.{sh,bash}; do
53
+ source "$f"
54
+ done
55
+ unset f
56
+ fi
55
57
56
58
EOF
57
59
;;
@@ -60,10 +62,12 @@ do-init() {
60
62
cat << -"EOF "
61
63
# bpm packages completions
62
64
fpath=("$BPM_ROOT/cellar/completions/zsh/compsys" $fpath)
63
- for f in "$BPM_ROOT"/cellar/completions/zsh/compctl/?*.zsh; do
64
- source "$f"
65
- done
66
- unset f
65
+ if [ -d "$BPM_ROOT/cellar/completions/zsh/compctl" ]; then
66
+ for f in "$BPM_ROOT"/cellar/completions/zsh/compctl/?*.zsh; do
67
+ source "$f"
68
+ done
69
+ unset f
70
+ fi
67
71
68
72
EOF
69
73
;;
You can’t perform that action at this time.
0 commit comments