Allowing Quarto to execute and read shell scripts passed to the post-
/pre-render
option automatically
#11905
-
DescriptionNot a Quarto problem per se but is there a way to give Quarto default execute and read permissions to shell scripts passed to the Currently, using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I would argue that this avoid Quarto to run code you didn't want to be executed without having you to explicitly state it should using the permissions. |
Beta Was this translation helpful? Give feedback.
-
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 quarto-cli/src/command/render/project.ts Lines 997 to 1007 in e4a8898 So in your case Did you try that ? |
Beta Was this translation helpful? Give feedback.
-
I agree that this isn't convenient, but good text editors will let you automatically set the +x flag on scripts :) |
Beta Was this translation helpful? Give feedback.
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
quarto-cli/src/command/render/project.ts
Lines 997 to 1007 in e4a8898
So in your case
args
ismyscript.sh
directly, and this is t…