X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=blobdiff_plain;f=locate-all;h=f83a8827e6caec8c5ef889893ccacecf69b6bc4e;hp=e348424a0e2739b791c87cc649e283a4520a5351;hb=b90789d369c5500fa85a0954869626e8aa3566ce;hpb=142a0e7cfb8a9e6556a0ff1f24aac91182bbfdca diff --git a/locate-all b/locate-all index e348424..f83a882 100755 --- a/locate-all +++ b/locate-all @@ -4,10 +4,10 @@ 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 | - LC_ALL=C sort | uniq > locate-all.list +LC_ALL=C sort -u > locate-all.list