Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages / 
mattermost


Commits:
06d76915 by Caleb Maclennan at 2025-05-29T16:50:21+03:00
upgpkg: 10.8.2-2: Fix emplty mmctl completions, closes !1

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = mattermost
        pkgdesc = Open source Slack-alternative in Golang and React
        pkgver = 10.8.2
-       pkgrel = 1
+       pkgrel = 2
        url = https://mattermost.com
        arch = x86_64
        license = AGPL-3.0-only


=====================================
PKGBUILD
=====================================
@@ -6,7 +6,7 @@
 pkgbase=mattermost
 pkgname=($pkgbase mmctl)
 pkgver=10.8.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Open source Slack-alternative in Golang and React"
 arch=(x86_64)
 url="https://mattermost.com";
@@ -177,7 +177,8 @@ package_mmctl() {
     cd $_archive
     install -Dm0755 -t "$pkgdir/usr/bin/" "server/bin/$pkgname"
     install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.txt
+    shopt -s expand_aliases
     alias _compgen="$pkgdir/usr/bin/mmctl completion"
-    _compgen bash | install -Dm0644 /dev/stdin 
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
-    _compgen zsh  | install -Dm0644 /dev/stdin 
"$pkgdir/usr/share/zsh/site-functions/_$pkgname"
+    install -Dm0644 <(_compgen bash) 
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
+    install -Dm0644 <(_compgen zsh) 
"$pkgdir/usr/share/zsh/site-functions/_$pkgname"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/mattermost/-/commit/06d769159f643fae45ab3dbb8736f35481394be3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/mattermost/-/commit/06d769159f643fae45ab3dbb8736f35481394be3
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to