1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/hack/validate
Kir Kolyshkin 5791019028 hack/validate/vendor: simplify looking for license
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>
2019-10-29 10:59:05 -07:00
..
.swagger-yamllint
.validate hack: no need to git fetch in CI 2019-02-05 02:54:50 +00:00
all Shell scripts: fix bare variables 2019-01-10 02:50:47 +01:00
changelog-date-descending hack: fix mixed tabs/spaces for indentation 2019-08-02 15:58:33 +02:00
changelog-well-formed hack: fix mixed tabs/spaces for indentation 2019-08-02 15:58:33 +02:00
dco Shell scripts: fix bare variables 2019-01-10 02:50:47 +01:00
default Revert "Revert "hack: temporarily disable deprecate-integration-cli"" 2019-09-18 12:58:02 +02:00
default-seccomp
deprecate-integration-cli hack: fix mixed tabs/spaces for indentation 2019-08-02 15:58:33 +02:00
golangci-lint bump golangci-lint v1.20.0 2019-10-18 00:46:15 +02:00
golangci-lint.yml golangci-lint: include all enabled linters in config 2019-10-18 00:46:13 +02:00
pkg-imports
swagger Set locale to fix yamlllint 2019-08-06 01:35:35 +02:00
swagger-gen hack: fix mixed tabs/spaces for indentation 2019-08-02 15:58:33 +02:00
toml
vendor hack/validate/vendor: simplify looking for license 2019-10-29 10:59:05 -07:00