chore: sync submodule state (parent ref update)
Made-with: Cursor
This commit is contained in:
@@ -13,9 +13,12 @@ load_env() {
|
||||
local env_file="${1:-${PROJECT_ROOT}/.env}"
|
||||
|
||||
if [ -f "$env_file" ]; then
|
||||
# Export variables, ignoring comments and empty lines
|
||||
# Export variables, ignoring comments and empty lines.
|
||||
# Disable set -e so a failing command in .env (e.g. command substitution) does not exit the shell.
|
||||
set -a
|
||||
source <(grep -v '^#' "$env_file" | grep -v '^$' | sed 's/^/export /')
|
||||
set +e
|
||||
source <(grep -v '^#' "$env_file" | grep -v '^$' | sed 's/^/export /') 2>/dev/null || true
|
||||
set -e
|
||||
set +a
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user