1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash # * ls-repos # List repos and URLs # Example: ls-repos readonly URL=https://git.parabola.nu/ set -e #find . -type f -name 'HEAD' | sed "s|\./\(.*\)/HEAD|${URL}\1|" find . -type d -name '*.git' | sed "s|\./\(.*\)|${URL}\1|"