From 440af4f3ebfecd68dabf8ce5524fd3f953e81c71 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 21 Dec 2020 11:13:51 +0000 Subject: cpt: remove cpt-stat and cpt-readlink, add _stat() and _readlinkf cpt-readlink and cpt-stat were unnecessary additions for mundane tasks. Since they were binaries instead of scripts, they added an extra layer of complexity to the library. These functions are now included inside the package manager library with the names _readlinkf() and _stat(). FossilOrigin-Name: 7e15e2b57ddcb834c4286c8d1ac0a28031ae4f5d39f3c6a99f5b3aa0e9a83d43 --- src/cpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cpt') diff --git a/src/cpt b/src/cpt index ce4c70f..57e16b4 100755 --- a/src/cpt +++ b/src/cpt @@ -16,8 +16,8 @@ case "$arg" in done for path; do - # These are the files to be ignored. - contains "lib readlink stat" "$path" && continue + # Ignore the library. + [ lib = "$path" ] && continue printf "%b->%b %-${max}s " "$colorb" "$colre" "${path#*/cpt-}" sed -n 's/^# *//;2p' "$(command -v "cpt-$path")" -- cgit v1.2.3