From bcfad43fd4755ae4062d7037eb4bbe39b1ba8c5e Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Tue, 11 Jan 2022 16:29:32 -0800 Subject: [PATCH] We don't pipe grep to awk in this house, young man --- live-build/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/functions b/live-build/functions index 99a66cc9..652b6382 100644 --- a/live-build/functions +++ b/live-build/functions @@ -595,7 +595,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}