diff --git a/PKGBUILD b/PKGBUILD index d1e0889..ca76813 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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"