Open max-mapper opened 8 years ago
Isn't that invalid json if a user doesn't escape it?
Keep in mind that you shouldn't replace already escaped quotes \"
.
well in my config its actually:
"gititude-update": "run-every 600 bash -c \\\"gititude update || true\\\""
:D
If you add to your config e.g.
bash -c "echo foo"
, it gets turned intomon "bash -c "echo foo""
which means the inner quotes essentially get ignored and the running process will look likemon bash -c echo foo
, when it should look likemon bash -c "echo foo"
.The fix is to escape the inner quotes, the user can do this manually but I think we should probably do this for them. I wonder if it is as simple as simply replacing
"
with\"
?