diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-11 18:47:08 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-11 18:47:08 +0200 |
commit | d4e498a18f700e288764cdf8799a2b07a76e1615 (patch) | |
tree | f99fba5291da388ba2c3d863466dc8c478ddd463 /bin | |
parent | b808eabf7a446a91efa8f5ec5240a8d60f4bc55d (diff) | |
download | arching-kaos-tools-d4e498a18f700e288764cdf8799a2b07a76e1615.tar.gz arching-kaos-tools-d4e498a18f700e288764cdf8799a2b07a76e1615.tar.bz2 arching-kaos-tools-d4e498a18f700e288764cdf8799a2b07a76e1615.zip |
More helpful output
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -17,7 +17,7 @@ then args="-h" if [ -n "$subcmd" ] then - echo $subcmd + echo $subcmd | cut -d '-' -f 2 | sort | uniq | sed -e 's/^/ak /g' # $(echo $subcmd) $args fi done @@ -46,6 +46,12 @@ else fi counter=$(($counter + 1)) done + find $AK_BINDIR | while read available + do + echo $(basename $available) |\ + grep ak-$(echo $argv | cut -d ' ' -f 1) |\ + sed -e 's/-/ /g' + done logit "ERROR" "Unknown subcommand: $*" exit 1 fi |