zsh check now with binary

This commit is contained in:
matthias@arch 2022-04-08 00:35:33 +02:00
parent 4afcaf9ef3
commit 20eb5a23c9

View File

@ -23,8 +23,8 @@ package() {
cp "${srcdir}/template" "${pkgdir}/usr/share/msynk/template"
chmod +x "${pkgdir}/usr/share/msynk/template"
# if using zsh
if [[ -n $ZSH_VERSION ]]; then
# if has zsh
if [[ -f /bin/zsh ]]; then
mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
cp "${srcdir}/_msynk.compdef.zsh" "${pkgdir}/usr/share/zsh/site-functions/_msynk"
chmod +x "${pkgdir}/usr/share/zsh/site-functions/_msynk"