aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-08-10 23:02:12 +0000
committermerakor <cem@ckyln.com>2021-08-10 23:02:12 +0000
commit296796280f670a5da9aee42cc86f127e6a48e602 (patch)
tree816f7a3a93a9034454b010b8645d0239c8b076e6
parentf9999114eb726ab9cdbeda8a830b170fd9d3cd07 (diff)
downloadcpt-296796280f670a5da9aee42cc86f127e6a48e602.tar.gz
cpt-cat: adhere to CPT_COLOR
FossilOrigin-Name: 30e2245cdcb1dd8338338d94589ceff0770f7c1c9857d1e5b9f07f4424e68fe9
-rwxr-xr-xcontrib/cpt-cat6
1 files changed, 3 insertions, 3 deletions
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