Skip to content

Commit

Permalink
install_easy: edit config use last line
Browse files Browse the repository at this point in the history
  • Loading branch information
bol-van committed Nov 19, 2021
1 parent bf0adc2 commit 8110ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_easy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8110ea0

Please sign in to comment.