mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Added pipeline step for checking all shell scripts in the repo
10
Drone.md
10
Drone.md
@@ -11,4 +11,14 @@ steps:
|
|||||||
image: koalaman/shellcheck-alpine:stable
|
image: koalaman/shellcheck-alpine:stable
|
||||||
commands:
|
commands:
|
||||||
- "shellcheck testScript.sh"
|
- "shellcheck testScript.sh"
|
||||||
|
```
|
||||||
|
|
||||||
|
To check all .sh files in the repo:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- name: shellcheck
|
||||||
|
image: koalaman/shellcheck-alpine:stable
|
||||||
|
commands:
|
||||||
|
- "find . -name *.sh -exec shellcheck {} +"
|
||||||
```
|
```
|
Reference in New Issue
Block a user