diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-07-05 22:37:01 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-07-05 22:37:01 +0530 |
| commit | 4d5182ad994c3bee390f3c21af4c43fc24428eef (patch) | |
| tree | db4f6a71520c4b948c6a48a6d27d4a4dbe1afbaf /cgit/ssh/git-shell-commands/list | |
| parent | c20d74cb5793d5821eadb2f96ac2e8e336e9a94a (diff) | |
| download | bacchus-remote-4d5182ad994c3bee390f3c21af4c43fc24428eef.tar.gz bacchus-remote-4d5182ad994c3bee390f3c21af4c43fc24428eef.zip | |
Add category command and styles
Diffstat (limited to '')
| -rwxr-xr-x | cgit/ssh/git-shell-commands/list | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/cgit/ssh/git-shell-commands/list b/cgit/ssh/git-shell-commands/list index 804a488..8a924c9 100755 --- a/cgit/ssh/git-shell-commands/list +++ b/cgit/ssh/git-shell-commands/list @@ -1,13 +1,8 @@ #!/usr/bin/env sh -ls -1 /git | while IPS="" read name; do - echo "$name" - printf " description: " - if [ -f "/git/${name}/description" ]; then - cat "/git/${name}/description" - else - echo "<no description>" - fi - echo "" -done +git_dir=/git + +ls -1 "$git_dir" | while IPS="" read name; do + echo "$name||||$(cat "${git_dir}/${name}/description" 2>/dev/null)" +done | column -t -d -s "||||" |
