Gotta escape \ during ynh_replace_vars

This commit is contained in:
Alexandre Aubin 2021-02-22 23:46:12 +01:00
parent c9676d4333
commit 59da04e92b

View file

@ -401,6 +401,7 @@ ynh_replace_vars () {
match_string="__${one_var^^}__"
match_string=${match_string//${delimit}/"\\${delimit}"}
replace_string="${!one_var}"
replace_string=${replace_string//\\/\\\\}
replace_string=${replace_string//${delimit}/"\\${delimit}"}
# Actually replace (sed is used instead of ynh_replace_string to avoid triggering an epic amount of debug logs)