bash - Sourcing a bashfile before running a command -


suppose have following file demo.env:

export value="abcd" 

how can make works mafile rule?

bash -c "source demo.env; echo $${value}" 

apparently 1 way is:

bash -c "source demo.env; echo \${value}" 

and in makefile rule:

echo:     bash -c "source demo.env; echo \$${value}" 

Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -