Skip to content

Allowing Quarto to execute and read shell scripts passed to the post-/pre-render option automatically #11905

Answered by cderv
arnaudgallou asked this question in Q&A
Discussion options

You must be logged in to vote

is there a way to give Quarto default execute and read permissions to shell scripts passed to the pre-/post-render option (assuming it's safe to do)?

I am not even sure this is possible to do so. If you are not using one of the script specifically supported Typescript (run with deno), Python, R or Lua, Quarto will just pass the command as-is

const result = await execProcess({
cmd: args,
cwd: projDir,
stdout: quiet ? "piped" : "inherit",
env,
});
if (!result.success) {
throw new Error();
}
}
}

So in your case args is myscript.sh directly, and this is t…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@arnaudgallou
Comment options

Comment options

You must be logged in to vote
1 reply
@arnaudgallou
Comment options

Answer selected by arnaudgallou
Comment options

You must be logged in to vote
1 reply
@arnaudgallou
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment