fixed warning in docker compose for env variables

This commit is contained in:
asus
2023-09-12 09:39:12 +02:00
parent 0b78df0d5d
commit 0c8d52ca2f
3 changed files with 12 additions and 12 deletions

View File

@@ -28,10 +28,10 @@ COMPOSE = ./srcs/docker-compose.yml
# then expend the home path
# then expend the pwd path
# and finally remove the leading "EXPEND_" word
EXPENDED_ENV_VAR := $(shell grep "^EXPEND_" ./srcs/.env)
EXPENDED_ENV_VAR := $(shell grep "^#EXPEND_" ./srcs/.env)
EXPENDED_ENV_VAR := $(subst $$HOME_PATH,$(HOME),$(EXPENDED_ENV_VAR))
EXPENDED_ENV_VAR := $(subst $$PWD_PATH,$(shell pwd),$(EXPENDED_ENV_VAR))
EXPENDED_ENV_VAR := $(EXPENDED_ENV_VAR:EXPEND_%=%)
EXPENDED_ENV_VAR := $(EXPENDED_ENV_VAR:#EXPEND_%=%)
# this creates a list of the path from the list of the variables :
# VAR_1=/path/to_1 VAR_2=/path/to_2