From f13273368a16df271e4317d413d9da564f541dea Mon Sep 17 00:00:00 2001 From: Raphaƫl Hertzog Date: Tue, 12 Jan 2021 14:48:27 +0100 Subject: Don't fail if one of the package lists expands to an empty list When a package lists contains only packages protected by a test that doesn't match for the current run, then Expand_package_list outputs nothing and the following "grep -v" fails because it has not filtered anything. Avoid this by protecting the "grep -v" call with "|| true". --- scripts/build/chroot_package-lists | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/chroot_package-lists b/scripts/build/chroot_package-lists index 8f6a3fe56..19964bf4d 100755 --- a/scripts/build/chroot_package-lists +++ b/scripts/build/chroot_package-lists @@ -71,7 +71,7 @@ do then # Generating package list Expand_packagelist "$(basename ${LIST})" "config/package-lists" \ - | grep -v '^#' >> chroot/root/packages.chroot + | grep -v '^#' >> chroot/root/packages.chroot || true fi done -- cgit v1.2.3