diff options
author | XZS | 2016-08-11 11:48:48 +0200 |
---|---|---|
committer | XZS | 2016-08-11 11:56:27 +0200 |
commit | 094fd3022b5afdf1d25d4bc3aa2068d9a433442b (patch) | |
tree | 849b5bed0a0ad311052f8ccf9b307a3d031bfa09 | |
parent | 0d82bafd8956e135a5406cd59b837d0d4182e760 (diff) | |
download | aur-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-- | PKGBUILD | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() { |