From 4144b7ac2fb8a954b04cae0932afc31cb2eb7971 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Mon, 22 Jan 2024 18:16:20 +0100 Subject: [PATCH] add back empty lines above code blocks to make MarkDown linter happy --- docs/easybuild-v5/run_shell_cmd.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/easybuild-v5/run_shell_cmd.md b/docs/easybuild-v5/run_shell_cmd.md index fc337b5f8..d1df7bd7d 100644 --- a/docs/easybuild-v5/run_shell_cmd.md +++ b/docs/easybuild-v5/run_shell_cmd.md @@ -41,12 +41,14 @@ out = res.output Examples: - Basic usage: + ```python cmd = ' '.join([self.cfg['preinstallopts'], install_cmd, self.cfg['installopts']]) run_shell_cmd(cmd) ``` - Get error code for both failure and non-failure of the command, as otherwise `run_shell_cmd` will raise `RunShellCmdError`. Additionally, don't display this command in terminal output: + ```python cmd = "cmake --version" res = run_shell_cmd(cmd, hidden=True, fail_on_error=False)