Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2023-03-31 11:29:07 +0200
committerGitHub <noreply@github.com>2023-03-31 11:29:07 +0200
commit1c6b0bae73a02fb91b1670e8527ff2dfb6dc3071 (patch)
tree7d96143996730ad3bbf0950df9873001f650e222
parent9efbe9e6e8e77eb1f08e5557ed9f2a6750af14ce (diff)
Replaced double-grep with awk (#1710)
-rw-r--r--PKGBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 42fccfc3..08c2001b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -39,8 +39,8 @@ validpgpkeys=('256F73CEEFC6705C6BBAB20E5FBBB32941E3740A') # Anton Hvornum (Torxe
pkgver() {
cd $pkgname-$pkgver
-
- cat archinstall/__init__.py | grep '^__version__' | grep -o -E '[0-9.]{5}'
+
+ awk '$1 ~ /^__version__/ {gsub("\"", ""); print $3}' archinstall/__init__.py
}
prepare() {