From df1cdbd656cfd49668663341d438f15f0015e4d3 Mon Sep 17 00:00:00 2001 From: Leons Aleksandrovs Date: Wed, 28 Jan 2026 22:09:03 +0200 Subject: [PATCH] fix a newline for setting env var --- shared.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared.sh b/shared.sh index 4e24a04..8372d66 100644 --- a/shared.sh +++ b/shared.sh @@ -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