From b37159809ed2c8c569a0d27d74e97e1d606c5dd1 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 23 Dec 2019 05:30:31 +0300 Subject: [PATCH] Doc(locate-all): Add comments --- locate-all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 | -- 2.39.2