Gotta escape \ during ynh_replace_vars

This commit is contained in:
Alexandre Aubin 2021-02-22 23:46:12 +01:00
parent 05969184fe
commit 6ce02270ae

View file

@ -403,6 +403,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)