Add scripts to run shellcheck and shfmt
This commit is contained in:
3
ci/shellcheck.sh
Executable file
3
ci/shellcheck.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
shellcheck "$(find . -type f | grep -v '\.git' | grep '\.sh')"
|
||||||
3
ci/shfmt.sh
Executable file
3
ci/shfmt.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/mnt" -w /mnt mvdan/shfmt -l -i 4 .
|
||||||
Reference in New Issue
Block a user