1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diagramsnet_ynh.git synced 2024-09-03 18:26:33 +02:00

fix quotting

This commit is contained in:
Gofannon 2020-04-05 12:32:37 +02:00
parent 26f9110717
commit ca7754a9ff
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ ynh_add_nginx_config
# Add "offline" parameter in index.html # Add "offline" parameter in index.html
# See https://desk.draw.io/support/solutions/articles/16000042546-what-url-parameters-are-supported- # See https://desk.draw.io/support/solutions/articles/16000042546-what-url-parameters-are-supported-
# and https://shelter.moe/@Neil/103928506546498078 [French] # and https://shelter.moe/@Neil/103928506546498078 [French]
sed_pattern='s/var params = window.location.search.slice(1).split('&');/&\n\t\t\tparams.push(\"offline=1\");/g' sed_pattern="s/var params = window.location.search.slice(1).split('&');/&\n\t\t\tparams.push(\"offline=1\");/g"
sed -i "$sed_pattern" "$final_path/src/main/webapp/index.html" sed -i "$sed_pattern" "$final_path/src/main/webapp/index.html"
#================================================= #=================================================

View file

@ -79,7 +79,7 @@ then
# Add "offline" parameter in index.html # Add "offline" parameter in index.html
# See https://desk.draw.io/support/solutions/articles/16000042546-what-url-parameters-are-supported- # See https://desk.draw.io/support/solutions/articles/16000042546-what-url-parameters-are-supported-
# and https://shelter.moe/@Neil/103928506546498078 [French] # and https://shelter.moe/@Neil/103928506546498078 [French]
sed_pattern='s/var params = window.location.search.slice(1).split('&');/&\n\t\t\tparams.push(\"offline=1\");/g' sed_pattern="s/var params = window.location.search.slice(1).split('&');/&\n\t\t\tparams.push(\"offline=1\");/g"
sed -i "$sed_pattern" "$final_path/src/main/webapp/index.html" sed -i "$sed_pattern" "$final_path/src/main/webapp/index.html"
fi fi