mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-12 15:36:58 +02:00
pkg-auto: Disable pager when printing package occurences
This commit is contained in:
parent
ff5286a47d
commit
0ba6b62bf0
@ -2768,7 +2768,7 @@ function grep_pkg() {
|
|||||||
pkg=${1}; shift
|
pkg=${1}; shift
|
||||||
# rest are directories
|
# 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
|
# Prints the passed files preceding and following with BEGIN ENTRY and
|
||||||
|
Loading…
Reference in New Issue
Block a user