mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
*.bbclass (shell): avoid pipe with sed
Replace: cat <file> | sed -e xxx By: sed -e xxx <file> (From OE-Core rev: e2026f5d32ac05396615224ac9ec927439e7e6b4) Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5ae4aadcae
commit
77790c43b1
@@ -67,7 +67,7 @@ pkg_postinst_kernel-image_prepend () {
|
||||
if [ "${grubcfg##*/}" = "grub.cfg" ]; then
|
||||
cat "$grubcfg"
|
||||
elif [ "${grubcfg##*/}" = "menu.list" ]; then
|
||||
cat "$grubcfg" | sed -e '/^default/d' -e '/^timeout/d'
|
||||
sed -e '/^default/d' -e '/^timeout/d' "$grubcfg"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user