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 14:42:16 +0000 |
| commit | 543d1bd48893d0d925ba7e0b3cbfab5d012286d5 (patch) | |
| tree | b64ba3700ac12b34219999d2e42a73e3207f1512 /scripts | |
| parent | 86aec93902af2e2d7d73ca9a643707fcca45055c (diff) | |
| download | poky-543d1bd48893d0d925ba7e0b3cbfab5d012286d5.tar.gz | |
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>
Diffstat (limited to 'scripts')
| -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 | |||
| 41 | 41 | ||
| 42 | chmod +x "$intercept_script" | 42 | chmod +x "$intercept_script" |
| 43 | 43 | ||
| 44 | pkgs_line="$(cat $intercept_script|grep "##PKGS:")" | 44 | pkgs_line=$(grep "##PKGS:" $intercept_script) |
| 45 | if [ -n "$pkgs_line" ]; then | 45 | if [ -n "$pkgs_line" ]; then |
| 46 | # line exists, add this package to the list only if it's not already there | 46 | # line exists, add this package to the list only if it's not already there |
| 47 | if [ -z "$(echo "$pkgs_line" | grep " $package_name ")" ]; then | 47 | if [ -z "$(echo "$pkgs_line" | grep " $package_name ")" ]; then |
