Skip to content

Commit af730a3

Browse files
hosekadamVenefilyn
authored andcommitted
Improve PODMAN var comparison in Makefile
Improve PODMAN comparison to correspond with good practices: https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html
1 parent f21f6cf commit af730a3

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
@@ -39,7 +39,7 @@ endif
3939
# Let the user specify PODMAN at the CLI, otherwise try to autodetect a working podman
4040
ifndef PODMAN
4141
PODMAN := $(shell podman run --rm alpine echo podman 2> /dev/null)
42-
ifndef PODMAN
42+
ifeq ($(strip $(PODMAN)),) # check if PODMAN still empty
4343
DUMMY := $(warning podman is not detected. Majority of commands will not work. Please install and verify that podman --version works.)
4444
endif
4545
endif

0 commit comments

Comments
 (0)