aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/postinst-intercepts/postinst_intercept
diff options
context:
space:
mode:
authorMatthieu Crapet <Matthieu.Crapet@ingenico.com>2015-03-18 17:20:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-22 09:20:36 +0000
commit7b12f4860138d8f5e53ebdfa2a87b59a9ea5c487 (patch)
tree4045da5b0df872cb03a3946c3b79a493053ebdd9 /scripts/postinst-intercepts/postinst_intercept
parentd995871b433643958845e1d476813fa12888100e (diff)
downloadopenembedded-core-contrib-7b12f4860138d8f5e53ebdfa2a87b59a9ea5c487.tar.gz
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>
Diffstat (limited to 'scripts/postinst-intercepts/postinst_intercept')
-rwxr-xr-xscripts/postinst-intercepts/postinst_intercept2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/postinst-intercepts/postinst_intercept b/scripts/postinst-intercepts/postinst_intercept
index 27c256834ce..a257198bbdb 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