mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Gotta escape \ during ynh_replace_vars
This commit is contained in:
parent
c9676d4333
commit
59da04e92b
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue