Advanced settings: fix escaping single quotes

Ref #486
This commit is contained in:
Floris Bos 2022-10-15 15:21:39 +02:00
parent 957c78f8a3
commit 9d4665dbca

View file

@ -570,7 +570,7 @@ Popup {
firstrun += s+"\n" firstrun += s+"\n"
} }
function escapeshellarg(arg) { function escapeshellarg(arg) {
return "'"+arg.replace(/'/g, "\\'")+"'" return "'"+arg.replace(/'/g, "'\"'\"'")+"'"
} }
function addCloudInit(s) { function addCloudInit(s) {
cloudinit += s+"\n" cloudinit += s+"\n"