From 296796280f670a5da9aee42cc86f127e6a48e602 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 10 Aug 2021 23:02:12 +0000 Subject: cpt-cat: adhere to CPT_COLOR FossilOrigin-Name: 30e2245cdcb1dd8338338d94589ceff0770f7c1c9857d1e5b9f07f4424e68fe9 --- contrib/cpt-cat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/cpt-cat') diff --git a/contrib/cpt-cat b/contrib/cpt-cat index 652ee7c..45e0dd9 100755 --- a/contrib/cpt-cat +++ b/contrib/cpt-cat @@ -47,10 +47,10 @@ pkg_list "$pkg" >/dev/null [ "$1" ] || set -- build depends sources version +# $sys_db and color variables are defined by cpt-lib +# shellcheck disable=2154 for file; do - # $sys_db is defined by cpt-lib - # shellcheck disable=2154 [ -f "$sys_db/$pkg/$file" ] || continue - printf '\033[1m%s:\033[m\n' "$file" >&2 + printf '%b%s:%b\n' "$colbold" "$file" "$colre" >&2 cat "$sys_db/$pkg/$file" done -- cgit v1.2.3