vcompletion: return failure on wrong arguments
This commit is contained in:
parent
0b4351b8e1
commit
b44a69c772
1 changed files with 4 additions and 1 deletions
|
@ -254,6 +254,9 @@ _vcompletion() {
|
||||||
bash) vinstall "$file" 0644 $_bash_completion_dir "${cmd}" ;;
|
bash) vinstall "$file" 0644 $_bash_completion_dir "${cmd}" ;;
|
||||||
fish) vinstall "$file" 0644 $_fish_completion_dir "${cmd}.fish" ;;
|
fish) vinstall "$file" 0644 $_fish_completion_dir "${cmd}.fish" ;;
|
||||||
zsh) vinstall "$file" 0644 $_zsh_completion_dir "_${cmd}" ;;
|
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
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue