aboutsummaryrefslogtreecommitdiff
path: root/src/cpt
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-12-21 11:13:51 +0000
committermerakor <cem@ckyln.com>2020-12-21 11:13:51 +0000
commit440af4f3ebfecd68dabf8ce5524fd3f953e81c71 (patch)
treed7ceaf1d040bad60822c87ad78ca30de76df1342 /src/cpt
parent36308f68ddd95984c1909c5ca00a6ab70544d15b (diff)
downloadcpt-440af4f3ebfecd68dabf8ce5524fd3f953e81c71.tar.gz
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
Diffstat (limited to 'src/cpt')
-rwxr-xr-xsrc/cpt4
1 files changed, 2 insertions, 2 deletions
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")"