From 7fbf9cf70e21beddd48e92b064dc3f12416a0ef9 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Fri, 19 Feb 2021 13:39:07 +0200 Subject: [PATCH] Simplify pacman command --- tools/findinpkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/findinpkg.sh b/tools/findinpkg.sh index 604e7f0..8ac8240 100755 --- a/tools/findinpkg.sh +++ b/tools/findinpkg.sh @@ -24,7 +24,7 @@ files_total=0 typeset -A FILEMATCHES esc=$(printf '\033') -for file in $(pacman -Ql "${1}" | sed "s/^${1}\s//g"); do +for file in $(pacman -Qlq "${1}"); do if [[ -f "${file}" ]]; then filestr=$(grep --line-number --with-filename --binary-files=without-match -i "${2}" "${file}" | sed -r "s/^(.*?:)([0-9]+):.*/\1\2/g")