X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=locate-all;h=f83a8827e6caec8c5ef889893ccacecf69b6bc4e;hb=d5edda00cd5b8ecd8ca9b3b38654b25176beb3cb;hp=841721ea07bbffd902f1278e6c0ab16d372cd2dc;hpb=0dee6251426c78542286fd9e93b21509c9e0e74a;p=git-scripts.git diff --git a/locate-all b/locate-all index 841721e..f83a882 100755 --- a/locate-all +++ b/locate-all @@ -1,13 +1,13 @@ #! /bin/sh locate -b \*.git | - grep -v "/archive/SQLObject/\|/archive/cheetah3/\|/third-party/\|$HOME/tmp/" | + grep -v "/archive/SQLObject/\|/archive/cheetah3/\|$HOME/tmp/\|/third-party/" | 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