Replaced double-grep with awk (#1710)

This commit is contained in:
Anton Hvornum 2023-03-31 11:29:07 +02:00 committed by GitHub
parent 9efbe9e6e8
commit 1c6b0bae73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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() {