Skip to content

Commit 04323cc

Browse files
committed
Correct paths
1 parent 55e2d4f commit 04323cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -698,15 +698,15 @@ git rebase --interactive HEAD~2
698698

699699
## List of git repositories in multiple directories.
700700
```sh
701-
find -E ${targetdir} \( -regex '.*/\.git
701+
find -E /path1 /path2 /path3 \( -regex '.*/\.git
702702
-not -regex '.*/\..*/\.git
703703
\) -type d -print0 | xargs -0 -I {} dirname {}
704704
```
705705

706706

707707
__Alternatives:__
708708
```sh
709-
find ${targetdir} -regextype posix-egrep \( -regex '.*/\.git
709+
find /path1 /path2 /path3 -regextype posix-egrep \( -regex '.*/\.git
710710
-not -regex '.*/\..*/\.git
711711
\) -type d -print0 | xargs -0 -I {} dirname {}
712712
```

tips.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,6 @@
313313
"tip": "git rebase --interactive HEAD~2"
314314
}, {
315315
"title": "List of git repositories in multiple directories.",
316-
"tip": "find -E ${targetdir} \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}",
317-
"alternatives": ["find ${targetdir} -regextype posix-egrep \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}"]
316+
"tip": "find -E /path1 /path2 /path3 \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}",
317+
"alternatives": ["find /path1 /path2 /path3 -regextype posix-egrep \\( -regex '.*/\\.git$' -not -regex '.*/\\..*/\\.git$' \\) -type d -print0 | xargs -0 -I {} dirname {}"]
318318
}]

0 commit comments

Comments
 (0)