[neon/neon/livecd-rootfs/Neon/release] live-build: We don't pipe grep to awk in this house, young man

Steve Langasek null at kde.org
Fri Jan 28 13:43:23 GMT 2022


Git commit 83953bd04199c7f217c3d7353d193d0ced0ce3a3 by Steve Langasek.
Committed on 12/01/2022 at 03:26.
Pushed by jriddell into branch 'Neon/release'.

We don't pipe grep to awk in this house, young man

M  +1    -1    live-build/functions

https://invent.kde.org/neon/neon/livecd-rootfs/commit/83953bd04199c7f217c3d7353d193d0ced0ce3a3

diff --git a/live-build/functions b/live-build/functions
index b3692b5e..c99812d3 100644
--- a/live-build/functions
+++ b/live-build/functions
@@ -555,7 +555,7 @@ _snap_preseed() {
             local snap_type=$(echo "$snap_info" | awk '/^type:/ { print $2 }')
 
             if [ "$snap_type" != base ]; then
-                local core_snap=$(echo "$snap_info" | grep '^base:' | awk '{print $2}')
+                local core_snap=$(echo "$snap_info" | awk '/^base:/ {print $2}')
 
                 # If snap info does not list a base use 'core'
                 core_snap=${core_snap:-core}



More information about the Neon-commits mailing list