fixed zsh completions path

This commit is contained in:
Massimiliano Torromeo 2023-01-16 14:19:35 +01:00
parent 6a647cd774
commit e8b0b7ddcf
No known key found for this signature in database
GPG key ID: 11675C743429DDEF

View file

@ -14,8 +14,8 @@ sha256sums=('d57adc75cd4359a9f660b2ecbbd0ef82ebfa643c1218a6ca8ca1778bdda72380')
package() {
install -Dm0755 "$srcdir/clusterctl-linux-amd64-v$pkgver" "$pkgdir/usr/bin/clusterctl"
install -dm0755 "$pkgdir/usr/share/zsh-completions/site-functions/"
install -dm0755 "$pkgdir/usr/share/zsh/site-functions/"
install -dm0755 "$pkgdir/usr/share/bash-completion/completions/"
"$pkgdir/usr/bin/clusterctl" completion zsh > "$pkgdir/usr/share/zsh-completions/site-functions/_clusterctl"
"$pkgdir/usr/bin/clusterctl" completion zsh > "$pkgdir/usr/share/zsh/site-functions/_clusterctl"
"$pkgdir/usr/bin/clusterctl" completion bash > "$pkgdir/usr/share/bash-completion/completions/clusterctl"
}