summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXZS2016-08-11 11:48:48 +0200
committerXZS2016-08-11 11:56:27 +0200
commit094fd3022b5afdf1d25d4bc3aa2068d9a433442b (patch)
tree849b5bed0a0ad311052f8ccf9b307a3d031bfa09
parent0d82bafd8956e135a5406cd59b837d0d4182e760 (diff)
downloadaur-094fd3022b5afdf1d25d4bc3aa2068d9a433442b.tar.gz
deduplicate version
The search term now appears multiple times on the new site. Limiting grep to the first match avoids cluttering the version string with multiple copies of the same number. Unfortunately, this makes curl emit an error message because grep will close the pipe as soon as it found its single match.
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 09d9bec3f453..2907de29c6d9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,7 @@ sha256sums=('6f34484abaf76f7175264de32610a92447408d63c06a91dfb6e5744023e8d831'
DLAGENTS=("version::/usr/bin/bash -c $(
printf '%s\n' "${DLAGENTS[@]}" | sed -n 's/http::\(.*\)/\1/p' \
| sed 's/-[^ ] %o //' | sed 's/ /\\ /g' | sed 's/%u/$(echo\\ %u\\ |\\ sed\\ "s\/^version\/http\/")/'
-)\ |\ grep\ -Po\ '(?<=GTK\ )[[:digit:].]+(?=\ Theme)'\ >\ %o"
+)\ |\ grep\ -Po\ -m1\ '(?<=GTK\ )[[:digit:].]+(?=\ Theme)'\ >\ %o"
"${DLAGENTS[@]}")
pkgver() {