mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
Add in a -not -path option to find to prevent the command finding (#699)
hidden directories (typically .git) to lint Signed-off-by: Matthew B White <whitemat@uk.ibm.com>
This commit is contained in:
parent
a3ae179efb
commit
0262d264d8
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ function print() {
|
|||
|
||||
go install golang.org/x/tools/cmd/goimports@latest
|
||||
|
||||
dirs=("$(find . -name "*-go" -o -name "*-java" -o -name "*-javascript" -o -name "*-typescript")")
|
||||
dirs=("$(find . -name "*-go" -o -name "*-java" -o -name "*-javascript" -o -name "*-typescript" -not -path '*/.*')")
|
||||
for dir in $dirs; do
|
||||
if [[ -d $dir ]] && [[ ! $dir =~ node_modules ]]; then
|
||||
print "Linting $dir"
|
||||
|
|
|
|||
Loading…
Reference in a new issue