From 0ba6b62bf012933657ebb24b0d15939695f9876c Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Fri, 31 Jan 2025 16:16:04 +0100 Subject: [PATCH] pkg-auto: Disable pager when printing package occurences --- pkg_auto/impl/pkg_auto_lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg_auto/impl/pkg_auto_lib.sh b/pkg_auto/impl/pkg_auto_lib.sh index 437efd619e..d96bc60765 100644 --- a/pkg_auto/impl/pkg_auto_lib.sh +++ b/pkg_auto/impl/pkg_auto_lib.sh @@ -2768,7 +2768,7 @@ function grep_pkg() { pkg=${1}; shift # rest are directories - git -C "${scripts}" grep "${pkg}"'\(-[0-9]\|[^a-zA-Z0-9_-]\|$\)' -- "${@}" || : + GIT_PAGER= git -C "${scripts}" grep "${pkg}"'\(-[0-9]\|[^a-zA-Z0-9_-]\|$\)' -- "${@}" || : } # Prints the passed files preceding and following with BEGIN ENTRY and