vcompletion: return failure on wrong arguments

This commit is contained in:
Đoàn Trần Công Danh 2021-08-08 11:23:37 +07:00
parent 0b4351b8e1
commit b44a69c772

View file

@ -254,6 +254,9 @@ _vcompletion() {
bash) vinstall "$file" 0644 $_bash_completion_dir "${cmd}" ;;
fish) vinstall "$file" 0644 $_fish_completion_dir "${cmd}.fish" ;;
zsh) vinstall "$file" 0644 $_zsh_completion_dir "_${cmd}" ;;
*) msg_red "$pkgver: vcompletion: unknown shell ${shell}" ;;
*)
msg_red "$pkgver: vcompletion: unknown shell ${shell}"
return 1
;;
esac
}