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" cp "${srcdir}/template" "${pkgdir}/usr/share/msynk/template"
chmod +x "${pkgdir}/usr/share/msynk/template" chmod +x "${pkgdir}/usr/share/msynk/template"
# if using zsh # if has zsh
if [[ -n $ZSH_VERSION ]]; then if [[ -f /bin/zsh ]]; then
mkdir -p "${pkgdir}/usr/share/zsh/site-functions" mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
cp "${srcdir}/_msynk.compdef.zsh" "${pkgdir}/usr/share/zsh/site-functions/_msynk" cp "${srcdir}/_msynk.compdef.zsh" "${pkgdir}/usr/share/zsh/site-functions/_msynk"
chmod +x "${pkgdir}/usr/share/zsh/site-functions/_msynk" chmod +x "${pkgdir}/usr/share/zsh/site-functions/_msynk"