Add bin/run-shellcheck
This commit is contained in:
parent
bd4292f6ca
commit
a9731512b2
1 changed files with 18 additions and 0 deletions
18
bin/run-shellcheck
Executable file
18
bin/run-shellcheck
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
run_shellcheck() {
|
||||
files="$1"
|
||||
for file in $files; do
|
||||
if shellcheck "$file"; then
|
||||
echo "OK: $file"
|
||||
else
|
||||
echo "ERROR: $file"
|
||||
exit 1
|
||||
fi;
|
||||
done
|
||||
}
|
||||
|
||||
run_shellcheck "bin/portzap"
|
||||
run_shellcheck "libexec/portzap/install-file"
|
||||
run_shellcheck "libexec/portzap/install-directory"
|
||||
run_shellcheck "libexec/portzap/commands/*"
|
||||
run_shellcheck "libexec/portzap/functions/*"
|
Loading…
Reference in a new issue