Trim whitespace from .env values to ensure proper secret generation

This commit is contained in:
Kelin
2026-02-02 13:52:28 -05:00
parent 4fd30340ef
commit 80b44f8bef

View File

@@ -84,8 +84,8 @@ load_env_file_safely() {
value="${BASH_REMATCH[1]}" value="${BASH_REMATCH[1]}"
fi fi
# Export the variable # Trim whitespace from value
export "$key"="$value" value=$(echo "$value" | xargs)
debug_log "Exported $key=[HIDDEN]" # Don't log actual values for security debug_log "Exported $key=[HIDDEN]" # Don't log actual values for security
fi fi
done < "$env_file" done < "$env_file"