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

focal-iotg-bump
Steve Langasek 3 years ago
parent dc629f4114
commit 83953bd041

@ -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}

Loading…
Cancel
Save