Skip to content

Overriding environment variables in .env file for recipe execution #1680

Answered by runeimp
rohel01 asked this question in Q&A
Discussion options

You must be logged in to vote

If your recipe is run as a shebang script you can source the .env file which should take precedence in the rest of the recipe.

example:
	#!/usr/bin/env bash
	source .env
	# Do Stuff

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rohel01
Comment options

Answer selected by rohel01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants