mirror of https://github.com/docker/docs.git
Mac: a `make check` that checks for useless images
Signed-off-by: Akim Demaille <akim.demaille@docker.com>
This commit is contained in:
parent
8495fe79e7
commit
fcf7ca985f
|
@ -0,0 +1,10 @@
|
|||
.PHONY:
|
||||
check:
|
||||
for img in $$(git ls-files images); do \
|
||||
base=$$(basename "$$img"); \
|
||||
if ! git grep -q -F "$$base"; then \
|
||||
echo >&2 "unused image: $$img"; \
|
||||
pass=false; \
|
||||
fi; \
|
||||
done; \
|
||||
$$pass
|
Loading…
Reference in New Issue