mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
5791019028
It was suggested that we use '.*\(COPYING\|LICENSE\|COPYRIGHT\).*' as an argument to `find -iregex`, and this is how it all started. Next thing, there is no COPYRIGHT in any of the vendored packages, so it can be removed for good. Next, we should not look too deep inside the package directory, as the license should be in its root directory, so add `-maxdepth 1` to `find`. This should also speed things up. Finally, since we're not using the recursion feature of `find`, it can be replaced with `echo | grep`. While at it, * avoid temporary $pkgs variable as it is only used once; * replace `ls -d "vendor/$f" > /dev/null 2>&1` with `test -d`. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> |
||
---|---|---|
.. | ||
.swagger-yamllint | ||
.validate | ||
all | ||
changelog-date-descending | ||
changelog-well-formed | ||
dco | ||
default | ||
default-seccomp | ||
deprecate-integration-cli | ||
golangci-lint | ||
golangci-lint.yml | ||
pkg-imports | ||
swagger | ||
swagger-gen | ||
toml | ||
vendor |