From: Matthieu Crapet Date: Wed, 18 Mar 2015 16:20:20 +0000 (+0100) Subject: postinst_intercept script: drop pipe X-Git-Tag: 2015-4~66 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=7b12f4860138d8f5e53ebdfa2a87b59a9ea5c487;p=openembedded-core.git postinst_intercept script: drop pipe Avoid useless subshell. There's no word splitting in variable assignment. Signed-off-by: Matthieu Crapet Signed-off-by: Richard Purdie --- 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