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