Skip to content

Commit 84d0b69

Browse files
authored
[Makefile] script -q /dev/nullの追加
1 parent e01305f commit 84d0b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
DOCKER_IMAGE=$(shell sed -ne 's/^.*image:[ \t]*//p' compose.yml)
55
DOCKER_ARCH=-$(subst x86_64,amd64,$(subst aarch64,arm64,$(shell uname -m)))
6-
DOCKER_COMPOSE=$(shell docker compose version > /dev/null 2>&1 && echo docker compose || echo docker-compose)
6+
DOCKER_COMPOSE=$(shell docker compose version > /dev/null 2>&1 && echo script -q /dev/null docker compose || echo docker-compose)
77

88
build:
99
-docker pull ${DOCKER_IMAGE} | awk '{ print } /Downloaded newer image/ { system("$(DOCKER_COMPOSE) down"); }'

0 commit comments

Comments
 (0)