Skip to content

Instantly share code, notes, and snippets.

@tschifftner
Created December 22, 2020 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tschifftner/41674eb87b68ab1730cb9ce1e118fd42 to your computer and use it in GitHub Desktop.
Save tschifftner/41674eb87b68ab1730cb9ce1e118fd42 to your computer and use it in GitHub Desktop.
Load variables from .env within a bash script
# Load variables from .env
if [ -f .env ]; then
export $(cat .env | xargs)
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment