Created
October 22, 2021 16:34
-
-
Save riccardopedrielli/6a3787fd0d6ea5af69bcc42843eaf2cf to your computer and use it in GitHub Desktop.
Set environment variables from file in bash
This file contains 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
if [ -r "${ENV_FILE}" ]; then | |
set -o allexport | |
source "${ENV_FILE}" | |
set +o allexport | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment