diff options
author | merakor <cem@ckyln.com> | 2021-04-12 12:00:57 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-04-12 12:00:57 +0000 |
commit | 851fe4ca9fed86045d9849e68f84209482d8a42e (patch) | |
tree | f336de68f97e4f66b9ef69a4dcb932921a08d21a /src | |
parent | 8b4545d293dba9c196e60bd60de3a882b2a2ecfd (diff) | |
download | cpt-851fe4ca9fed86045d9849e68f84209482d8a42e.tar.gz |
cpt: fix --help output when inside a directory prefixed with cpt-
FossilOrigin-Name: 83ae4a759534bb013b2b6c3db11874017869e70c7566f89dc6a86a0b2c4c6df3
Diffstat (limited to 'src')
-rwxr-xr-x | src/cpt | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |