X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=blobdiff_plain;f=locate-all;h=3440614badf8223febc3a593006e0f19661ada66;hp=e348424a0e2739b791c87cc649e283a4520a5351;hb=b37159809ed2c8c569a0d27d74e97e1d606c5dd1;hpb=142a0e7cfb8a9e6556a0ff1f24aac91182bbfdca diff --git a/locate-all b/locate-all index e348424..3440614 100755 --- a/locate-all +++ b/locate-all @@ -4,9 +4,9 @@ locate -b \*.git | while read path; do if [ -d "$path" ]; then # skip files `.git` - they're submodules if [ "`basename \"$path\"`" = .git ]; then - dirname "$path" + dirname "$path" # translate `project/.git/` to just `project/` else - echo "$path" + echo "$path" # bare repo `project.git/` fi fi done |