Fix pkgver() stdout leak in PKGBUILD
This commit is contained in:
parent
b365572033
commit
9539d83c85
@ -4,7 +4,7 @@
|
||||
# Maintainer: Dominik Kressler
|
||||
|
||||
pkgname=moonlock-git
|
||||
pkgver=0.0.0.r8.0eefe76
|
||||
pkgver=0.0.0.r9.b365572
|
||||
pkgrel=1
|
||||
pkgdesc="A secure Wayland lockscreen with GTK4, PAM and fingerprint support"
|
||||
arch=('any')
|
||||
@ -33,7 +33,7 @@ sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/moonlock"
|
||||
if git describe --long --tags 2>/dev/null; then
|
||||
if git describe --long --tags >/dev/null 2>&1; then
|
||||
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
|
||||
else
|
||||
printf "0.0.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user