Fix Arch package test failures
This commit is contained in:
@@ -27,8 +27,12 @@ sha256sums=(
|
||||
|
||||
pkgver() {
|
||||
cd skald || return
|
||||
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
|
||||
local describe
|
||||
if describe="$(git describe --long --tags 2>/dev/null)"; then
|
||||
printf '%s\n' "$describe" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
else
|
||||
printf '0.0.0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user