From 669182c133b80706eb8940bdc99a95e7c6433b4a Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 3 Dec 2024 17:33:02 +0300 Subject: [PATCH] install_easy: trim trailing space in editor --- common/installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/installer.sh b/common/installer.sh index 23b8f82..2aa892a 100644 --- a/common/installer.sh +++ b/common/installer.sh @@ -140,7 +140,7 @@ echo_var() eval v="\$$1" if find_str_in_list $1 "$EDITVAR_NEWLINE_VARS"; then echo "$1=\"" - echo "$v\"" | tr '\n' ' ' | tr -d '\r' | sed -e 's/ *//' -e "s/$EDITVAR_NEWLINE_DELIMETER /$EDITVAR_NEWLINE_DELIMETER\n/g" + echo "$v\"" | tr '\n' ' ' | tr -d '\r' | sed -e 's/^ *//' -e 's/ *$//' -e "s/$EDITVAR_NEWLINE_DELIMETER /$EDITVAR_NEWLINE_DELIMETER\n/g" else if contains "$v" " "; then echo $1=\"$v\"