mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-26 18:41:14 +00:00
We don't pipe grep to awk in this house, young man
This commit is contained in:
parent
0b4811f7a9
commit
bcfad43fd4
@ -595,7 +595,7 @@ _snap_preseed() {
|
|||||||
local snap_type=$(echo "$snap_info" | awk '/^type:/ { print $2 }')
|
local snap_type=$(echo "$snap_info" | awk '/^type:/ { print $2 }')
|
||||||
|
|
||||||
if [ "$snap_type" != base ]; then
|
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'
|
# If snap info does not list a base use 'core'
|
||||||
core_snap=${core_snap:-core}
|
core_snap=${core_snap:-core}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user