escape echo
This commit is contained in:
parent
71d9cb91c4
commit
d2c41c2ae9
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class D2langDirective(Directive):
|
||||||
srcdir = self.state.document.settings.env.srcdir
|
srcdir = self.state.document.settings.env.srcdir
|
||||||
diag_source = self.content
|
diag_source = self.content
|
||||||
d2_bin = which('d2')
|
d2_bin = which('d2')
|
||||||
cmd_line = "echo %s | %s - %s" % (diag_source, d2_bin, srcdir + "/test.svg")
|
cmd_line = 'echo "%s" | %s - %s' % (diag_source, d2_bin, srcdir + "/test.svg")
|
||||||
args = shlex.split(cmd_line)
|
args = shlex.split(cmd_line)
|
||||||
subprocess.run(args)
|
subprocess.run(args)
|
||||||
image_node = nodes.image(uri="/test.svg")
|
image_node = nodes.image(uri="/test.svg")
|
||||||
|
|
Loading…
Reference in a new issue