fix: very jank use of tree

This commit is contained in:
əlemi 2024-02-08 17:57:37 +01:00
parent b99790c86f
commit 70e3d77b19
Signed by: alemi
GPG key ID: A4895B84D311642C

12
ls
View file

@ -1,10 +1,12 @@
#!/bin/bash #!/bin/bash
tree /srv/git -I "hooks|objects|info|branches|refs|HEAD|description|config|cgitrc|FETCH_HEAD|packed-refs"
# ls /srv/git -I 'git-shell-commands' # ls /srv/git -I 'git-shell-commands'
# one above misses repos like '.dotfiles', let's do it by hand # one above misses repos like '.dotfiles', let's do it by hand
for f in $(ls /srv/git -a); do # for f in $(ls /srv/git -a); do
if [[ $f == *.git ]]; then # if [[ $f == *.git ]]; then
echo $f # echo $f
fi # fi
done # done