fix a newline for setting env var
This commit is contained in:
@@ -23,7 +23,7 @@ pause_for_user() {
|
|||||||
get_env_value() {
|
get_env_value() {
|
||||||
local file="$1"
|
local file="$1"
|
||||||
local key="$2"
|
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
|
# Add or update value in .env file
|
||||||
|
|||||||
Reference in New Issue
Block a user