Skip to content

Commit

Permalink
added safe env include
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT committed Oct 16, 2024
1 parent 6883497 commit 580909a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion services/leecher/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
include .env
ENVFILE = .env
ENVFILE_EXAMPLE = example_env

# Create the .env file if not exit.
ifeq ("$(wildcard $(ENVFILE))","")
$(shell cp $(ENVFILE_EXAMPLE) $(ENVFILE))
endif

VERSION=$(shell python -c "import os;import sys;content={};f=open('$(CURDIR)/../../package.py');exec(f.read(),content);f.close();print(content['version'])")
BASE_NAME := ayon-ftrack-leecher
IMAGE := ynput/$(BASE_NAME):$(VERSION)
Expand Down
9 changes: 8 additions & 1 deletion services/processor/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
include .env
ENVFILE = .env
ENVFILE_EXAMPLE = example_env

# Create the .env file if not exit.
ifeq ("$(wildcard $(ENVFILE))","")
$(shell cp $(ENVFILE_EXAMPLE) $(ENVFILE))
endif

VERSION=$(shell python -c "import os;import sys;content={};f=open('$(CURDIR)/../../package.py');exec(f.read(),content);f.close();print(content['version'])")
BASE_NAME := ayon-ftrack-processor
IMAGE := ynput/$(BASE_NAME):$(VERSION)
Expand Down

0 comments on commit 580909a

Please sign in to comment.