fix a newline for setting env var

This commit is contained in:
2026-01-28 22:09:03 +02:00
parent 80e061e375
commit df1cdbd656

View File

@@ -23,7 +23,7 @@ pause_for_user() {
get_env_value() {
local file="$1"
local key="$2"
grep "^${key}=" "$file" 2>/dev/null | head -1 | cut -d'=' -f2- | tr -d '"' | tr -d "'"
grep "^${key}=" "$file" 2>/dev/null | head -1 | cut -d'=' -f2- | tr -d '"' | tr -d "'" | tr -d '\r\n'
}
# Add or update value in .env file