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:
parent
86aec93902
commit
543d1bd488
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue