Skip to content

Commit

Permalink
Improve PODMAN var comparison in Makefile
Browse files Browse the repository at this point in the history
Improve PODMAN comparison to correspod with good practices:
https://www.gnu.org/software/make/manual/html_node/Conditional-Syntax.html
  • Loading branch information
hosekadam committed Jan 17, 2025
1 parent f21f6cf commit 1ebd8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ endif
# Let the user specify PODMAN at the CLI, otherwise try to autodetect a working podman
ifndef PODMAN
PODMAN := $(shell podman run --rm alpine echo podman 2> /dev/null)
ifndef PODMAN
ifeq ($(strip $(PODMAN)),) # check if PODMAN still empty
DUMMY := $(warning podman is not detected. Majority of commands will not work. Please install and verify that podman --version works.)
endif
endif
Expand Down

0 comments on commit 1ebd8a5

Please sign in to comment.