diff options
author | Matthieu Crapet <Matthieu.Crapet@ingenico.com> | 2015-03-18 17:20:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-22 09:20:36 +0000 |
commit | 7b12f4860138d8f5e53ebdfa2a87b59a9ea5c487 (patch) | |
tree | 4045da5b0df872cb03a3946c3b79a493053ebdd9 | |
parent | d995871b433643958845e1d476813fa12888100e (diff) | |
download | openembedded-core-7b12f4860138d8f5e53ebdfa2a87b59a9ea5c487.tar.gz openembedded-core-7b12f4860138d8f5e53ebdfa2a87b59a9ea5c487.tar.bz2 openembedded-core-7b12f4860138d8f5e53ebdfa2a87b59a9ea5c487.zip |
postinst_intercept script: drop pipe
Avoid useless subshell.
There's no word splitting in variable assignment.
Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/postinst-intercepts/postinst_intercept | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/postinst-intercepts/postinst_intercept b/scripts/postinst-intercepts/postinst_intercept index 27c256834c..a257198bbd 100755 --- a/scripts/postinst-intercepts/postinst_intercept +++ b/scripts/postinst-intercepts/postinst_intercept @@ -41,7 +41,7 @@ fi chmod +x "$intercept_script" -pkgs_line="$(cat $intercept_script|grep "##PKGS:")" +pkgs_line=$(grep "##PKGS:" $intercept_script) if [ -n "$pkgs_line" ]; then # line exists, add this package to the list only if it's not already there if [ -z "$(echo "$pkgs_line" | grep " $package_name ")" ]; then |