Skip to content

Commit

Permalink
reviewed if logic
Browse files Browse the repository at this point in the history
  • Loading branch information
dmartinol committed Feb 20, 2024
1 parent 16f150a commit ec5b121
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,17 @@ ifndef WORKFLOW_ID
$(error WORKFLOW_ID variable is not defined. Please provide the required value)
endif

ifdef APPLICATION_ID
ifndef APPLICATION_ID
APPLICATION_ID = UNDEFINED
endif

ifeq ($(APPLICATION_ID), UNDEFINED)
IS_WORKFLOW = true
IS_APPLICATION = false
else
IS_WORKFLOW = false
IS_APPLICATION = true
endif
else
IS_WORKFLOW = true
IS_APPLICATION = false
endif

CONTAINER_ENGINE ?= $(shell which podman >/dev/null 2>&1 && echo podman || echo docker)
ifneq (,$(wildcard $(CURDIR)/.docker))
Expand Down

0 comments on commit ec5b121

Please sign in to comment.