Skip to content

Commit

Permalink
Update env_lines.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
CLHatch committed Feb 18, 2025
1 parent 3f4b134 commit df8d1e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .scripts/env_lines.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ IFS=$'\n\t'

env_lines() {
local VAR_FILE=${1:-$COMPOSE_ENV}
sed -n "s/^\s*\([A-Za-z0-9_]*\)\s*=/\1=/p" "${VAR_FILE}" || true
if [[ -f ${VAR_FILE} ]]; then
sed -n "s/^\s*\([A-Za-z0-9_]*\)\s*=/\1=/p" "${VAR_FILE}" || true
di
}

test_env_lines() {
Expand Down

0 comments on commit df8d1e3

Please sign in to comment.