fix: Completions for topgrade

This commit is contained in:
Sayantan Santra 2023-09-12 17:15:48 -05:00
parent 84bc2b595a
commit 95c1b6864c
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -22,10 +22,10 @@ package() {
install-manual "./${name}.8" install-manual "./${name}.8"
# completions # completions
if [ $(echo $(fish --version | awk '{print $3}')$'\n'3.4.0 | sort -V | head -n1) != '3.4.0' ]; then if [ $(echo $(fish --version | awk '{print $3}')$'\n'3.4.0 | sort -V | head -n1) != '3.4.0' ]; then
install-completion fish "${name}" | "${name}" --gen-completion fish "${name}" --gen-completion fish | install-completion fish "${name}"
fi fi
install-completion zsh "${name}" | "${name}" --gen-completion zsh "${name}" --gen-completion zsh | install-completion zsh "${name}"
install-completion bash "${name}" | "${name}" --gen-completion bash "${name}" --gen-completion bash | install-completion bash "${name}"
echo "Please add 'no_self_update = true' to your 'topgrade.toml' file to disable self updates, as it won't work with this installation" echo "Please add 'no_self_update = true' to your 'topgrade.toml' file to disable self updates, as it won't work with this installation"
} }