Mac: a make check that checks for useless images

Signed-off-by: Akim Demaille <akim.demaille@docker.com>
This commit is contained in:
Akim Demaille
2018-04-30 13:36:46 +02:00
committed by Joao Fernandes
parent 8495fe79e7
commit fcf7ca985f

10
docker-for-mac/Makefile Normal file
View File

@@ -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