diff options
author | Matthieu Crapet <Matthieu.Crapet@ingenico.com> | 2014-05-06 14:17:47 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-08 12:56:41 +0100 |
commit | e2026f5d32ac05396615224ac9ec927439e7e6b4 (patch) | |
tree | c177f910189d623cdb59d9cbe77107bae240ba01 /meta/classes/kernel-grub.bbclass | |
parent | 6ef8ac2ff97a408d4311ebebbafcfaf0a84be4d9 (diff) | |
download | openembedded-core-e2026f5d32ac05396615224ac9ec927439e7e6b4.tar.gz openembedded-core-e2026f5d32ac05396615224ac9ec927439e7e6b4.tar.bz2 openembedded-core-e2026f5d32ac05396615224ac9ec927439e7e6b4.zip |
*.bbclass (shell): avoid pipe with sed
Replace:
cat <file> | sed -e xxx
By:
sed -e xxx <file>
Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/kernel-grub.bbclass')
-rw-r--r-- | meta/classes/kernel-grub.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-grub.bbclass b/meta/classes/kernel-grub.bbclass index 85721ffd70..a63f482a91 100644 --- a/meta/classes/kernel-grub.bbclass +++ b/meta/classes/kernel-grub.bbclass @@ -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 } |