Signed-off-by: Uwe Hermann <uh@uleenucks.de>
This commit is contained in:
@@ -57,7 +57,7 @@ function export_env_file() {
|
||||
if [[ -f "${ENV_FILE}" ]]; then
|
||||
echo "find \"${ENV_FILE}\" file and export variables"
|
||||
set -a
|
||||
source <(cat "${ENV_FILE}" | sed -e '/^#/d;/^\s*$/d' -e 's/\(\w*\)[ \t]*=[ \t]*\(.*\)/DOTENV_\1=\2/')
|
||||
source <(sed -e '/^#/d;/^\s*$/d' -e 's/\(\w*\)[ \t]*=[ \t]*\(.*\)/DOTENV_\1=\2/' "${ENV_FILE}")
|
||||
set +a
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user