aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-04-12 12:00:57 +0000
committermerakor <cem@ckyln.com>2021-04-12 12:00:57 +0000
commit851fe4ca9fed86045d9849e68f84209482d8a42e (patch)
treef336de68f97e4f66b9ef69a4dcb932921a08d21a
parent8b4545d293dba9c196e60bd60de3a882b2a2ecfd (diff)
downloadcpt-851fe4ca9fed86045d9849e68f84209482d8a42e.tar.gz
cpt: fix --help output when inside a directory prefixed with cpt-
FossilOrigin-Name: 83ae4a759534bb013b2b6c3db11874017869e70c7566f89dc6a86a0b2c4c6df3
-rwxr-xr-xsrc/cpt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt b/src/cpt
index 4ddb4df..50268ea 100755
--- a/src/cpt
+++ b/src/cpt
@@ -11,7 +11,7 @@ case "$arg" in
log "Carbs Packaging Tool"
set --
for path in $(SEARCH_PATH=$PATH pkg_find cpt-* all -x); do
- set -- "${path#*/cpt-}" "$@"
+ set -- "${path##*/cpt-}" "$@"
max=$((${#1} > max ? ${#1} : max))
done