Skip to content

Commit

Permalink
Use ifdef for better code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
izzyleung committed Aug 6, 2023
1 parent d87237c commit 3759ccf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ else
endif

HAS_DNF:=$(shell command -v dnf 2> /dev/null)
ifndef HAS_DNF
PACKAGE_MANAGER=yum
INSTALL_FLAGS=-y
else
ifdef HAS_DNF
PACKAGE_MANAGER=dnf
INSTALL_FLAGS=-y --allowerasing
else
PACKAGE_MANAGER=yum
INSTALL_FLAGS=-y
endif

ifeq ($(USE_PODMAN),1)
Expand Down

0 comments on commit 3759ccf

Please sign in to comment.