summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorXZS2016-02-16 12:23:42 +0100
committerXZS2016-02-16 12:23:42 +0100
commitcd6a2a33eebd2a7665e6a8a7ce59945b8b805f07 (patch)
tree1daa78137a5a59fe05678a0c0288500398d4c963 /PKGBUILD
parentffb53ade2c3dcb2b5af5ea26a226a24d59f2b815 (diff)
downloadaur-cd6a2a33eebd2a7665e6a8a7ce59945b8b805f07.tar.gz
start search in git directory
This line was accidentally deleted when augmenting the sed call below with find, but is necessary for git operations further down the pkgver function.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 49ecd10825dd..dbfd574b44c6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -38,6 +38,7 @@ query-version() {
}
pkgver() {
+ cd "$_gitname"
find -iname '*.json' -exec sed -n \
's/.*"version"\s*:\s*"\([[:digit:].]*\)"\s*,.*/\1/p' \
'{}' \; -quit 2>/dev/null | tr '\n' '.'