Add scripts to run shellcheck and shfmt

This commit is contained in:
Michael Wolf
2023-09-30 15:29:37 -06:00
parent 7ae2eed832
commit a5ca80af47
2 changed files with 6 additions and 0 deletions

3
ci/shellcheck.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
shellcheck "$(find . -type f | grep -v '\.git' | grep '\.sh')"

3
ci/shfmt.sh Executable file
View 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 .