grep to-be-pulled-images directly to avoid newline issue.

This commit is contained in:
Timo Reimann 2017-09-26 14:44:03 +02:00 committed by Traefiker
parent dd23ceeead
commit 1ba7fd91ff

View file

@ -114,7 +114,7 @@ fmt:
gofmt -s -l -w $(SRCS)
pull-images:
cat ./integration/resources/compose/*.yml | grep -E '^\s+image:' | awk '{print $$2}' | sort | uniq | xargs -P 6 -n 1 docker pull
grep --no-filename -E '^\s+image:' ./integration/resources/compose/*.yml | awk '{print $$2}' | sort | uniq | xargs -n 1 docker pull
help: ## this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)