Created
December 22, 2020 09:40
-
-
Save tschifftner/41674eb87b68ab1730cb9ce1e118fd42 to your computer and use it in GitHub Desktop.
Load variables from .env within a bash script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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