Skip to content

Commit

Permalink
add back empty lines above code blocks to make MarkDown linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel authored Jan 22, 2024
1 parent be3a149 commit 4144b7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/easybuild-v5/run_shell_cmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4144b7a

Please sign in to comment.