portzap/bin/run-shellcheck

19 lines
405 B
Text
Raw Normal View History

2023-05-29 06:02:38 +02:00
#!/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/*"