Skip to content

Commit 8b0d998

Browse files
committed
fix: use exit instead of return
Signed-off-by: wxiwnd <wxiwnd@outlook.com>
1 parent ca78249 commit 8b0d998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/bash_pinyin_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Detect bash-completion
88
if ! declare -F _comp_compgen_filedir &>/dev/null; then
99
echo "No function _comp_compgen_filedir found. Please install bash-completion first."
10-
return
10+
exit 1
1111
fi
1212

1313
eval "function __bak_comp_compgen_filedir() { $(declare -f _comp_compgen_filedir | tail -n +2) }"

0 commit comments

Comments
 (0)