From 8110ea06b977f05f5395320d3a2ee6765b93f0d7 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 19 Nov 2021 16:16:48 +0300 Subject: [PATCH] install_easy: edit config use last line --- install_easy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_easy.sh b/install_easy.sh index d6f1df3..994f0c9 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -153,7 +153,7 @@ parse_var_checked() # $1 - file name # $2 - var name local sed="sed -nre s/^[[:space:]]*$2=[\\\"|\']?([^\\\"|\']*)[\\\"|\']?/\1/p" - local v="$($sed <"$1" | head -n 1)" + local v="$($sed <"$1" | tail -n 1)" eval $2=\"$v\" } parse_vars_checked()