mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
Mac: a make check that checks for useless images
Signed-off-by: Akim Demaille <akim.demaille@docker.com>
This commit is contained in:
committed by
Joao Fernandes
parent
8495fe79e7
commit
fcf7ca985f
10
docker-for-mac/Makefile
Normal file
10
docker-for-mac/Makefile
Normal 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
|
||||
Reference in New Issue
Block a user