From 38fdd4b6253a0e7679201c3d2b939d1e1a1a82e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mat=C3=ADas=20Fonzo?= Date: Tue, 21 Apr 2020 21:58:12 -0300 Subject: [PATCH] qi: Use awk instead of grep to print package descriptions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is to handle possible (very) long lines. Signed-off-by: Matías Fonzo --- qi/src/qi.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qi/src/qi.in b/qi/src/qi.in index 03be84ac..758eba91 100644 --- a/qi/src/qi.in +++ b/qi/src/qi.in @@ -800,11 +800,11 @@ install_mode() # Show package description if test -r "$rootdir${packagedir}/${name}/var/lib/qi/${name}.txt" then - grep '^#' "$rootdir${packagedir}/${name}/var/lib/qi/${name}.txt" + awk '/^#/' "$rootdir${packagedir}/${name}/var/lib/qi/${name}.txt" elif test -r "${1}.txt" then # From external meta file (current directory) - grep '^#' "${1}.txt" + awk '/^#/' "${1}.txt" else warn "Description file not found for '$name'." fi -- 2.11.4.GIT