Skip to content

Commit 86ff9cc

Browse files
committed
Standardizing shell usage in inputs exec plugin doc. Part of issue #2020.
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 85cd5e7 commit 86ff9cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipeline/inputs/exec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Take great care with shell quoting and escaping when wrapping commands.
177177

178178
A script like the following can ruin your day if someone passes it the argument `$(rm -rf /my/important/files; echo "deleted your stuff!")'`
179179

180-
```bash
180+
```shell
181181
#!/bin/bash
182182
# This is a DANGEROUS example of what NOT to do, NEVER DO THIS
183183
exec fluent-bit \
@@ -190,7 +190,7 @@ exec fluent-bit \
190190

191191
The previous script would be safer if written with:
192192

193-
```bash
193+
```shell
194194
-p command='echo '"$(printf '%q' "$@")" \
195195
```
196196

0 commit comments

Comments
 (0)