From 1c6b0bae73a02fb91b1670e8527ff2dfb6dc3071 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Fri, 31 Mar 2023 11:29:07 +0200 Subject: Replaced double-grep with awk (#1710) --- PKGBUILD | 4 ++-- 1 file 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() { -- cgit v1.2.3-70-g09d2