Bläddra i källkod

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>
Matthieu Crapet 9 år sedan
förälder
incheckning
7b12f48601
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      scripts/postinst-intercepts/postinst_intercept

+ 1 - 1
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