postinst_intercept script: drop pipe

Avoid useless subshell.
There's no word splitting in variable assignment.

(From OE-Core rev: 7b12f4860138d8f5e53ebdfa2a87b59a9ea5c487)

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Matthieu Crapet 2015-03-18 17:20:20 +01:00 committed by Richard Purdie
parent 86aec93902
commit 543d1bd488
1 changed files with 1 additions and 1 deletions

View File

@ -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