File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,20 @@ CHECK_TARGETS=install-tools markdownlint misspell table-check compatibility-chec
52
52
schema-check check-file-and-folder-names-in-docs
53
53
54
54
# Determine if "docker" is actually podman
55
- DOCKER_IS_PODMAN =$(docker --version | grep podman | wc -l )
55
+ DOCKER_VERSION_OUTPUT := $(shell docker --version 2>&1)
56
+ DOCKER_IS_PODMAN := $(shell echo $(DOCKER_VERSION_OUTPUT ) | grep -c podman)
57
+
56
58
ifeq ($(DOCKER_IS_PODMAN ) ,0)
57
- DOCKER_COMMAND = docker
59
+ DOCKER_COMMAND := docker
58
60
else
59
- DOCKER_COMMAND =podman
61
+ DOCKER_COMMAND := podman
62
+ endif
63
+
64
+ # Debug printing
65
+ ifdef DEBUG
66
+ $(info Docker version output : $(DOCKER_VERSION_OUTPUT ) )
67
+ $(info Is Docker actually Podman? $(DOCKER_IS_PODMAN))
68
+ $(info Using command : $(DOCKER_COMMAND ) )
60
69
endif
61
70
62
71
DOCKER_RUN =$(DOCKER_COMMAND ) run
You can’t perform that action at this time.
0 commit comments