From 20eb5a23c96f2fa2a7ca9dc09d7c8f1526e0bb03 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Fri, 8 Apr 2022 00:35:33 +0200 Subject: [PATCH] zsh check now with binary --- PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"