fixed warning in docker compose for env variables
This commit is contained in:
4
Makefile
4
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user