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 13:00:33 +0100 |
commit | 77790c43b1bfdb0ca9e43ca3878d9153962e47f2 (patch) | |
tree | 4d47320e74b9c09341f91fc8f37b87a91827aea7 /meta/classes/kernel-grub.bbclass | |
parent | 5ae4aadcae85c129aef6dd6ce2dcdd55e8ae9053 (diff) | |
download | poky-77790c43b1bfdb0ca9e43ca3878d9153962e47f2.tar.gz |
*.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>
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 () { | |||
67 | if [ "${grubcfg##*/}" = "grub.cfg" ]; then | 67 | if [ "${grubcfg##*/}" = "grub.cfg" ]; then |
68 | cat "$grubcfg" | 68 | cat "$grubcfg" |
69 | elif [ "${grubcfg##*/}" = "menu.list" ]; then | 69 | elif [ "${grubcfg##*/}" = "menu.list" ]; then |
70 | cat "$grubcfg" | sed -e '/^default/d' -e '/^timeout/d' | 70 | sed -e '/^default/d' -e '/^timeout/d' "$grubcfg" |
71 | fi | 71 | fi |
72 | } | 72 | } |
73 | 73 | ||