From a9731512b22ae7e9f9ef11cf79ec89c341abd7ad Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Mon, 29 May 2023 01:02:38 -0300 Subject: [PATCH] Add bin/run-shellcheck --- bin/run-shellcheck | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 bin/run-shellcheck diff --git a/bin/run-shellcheck b/bin/run-shellcheck new file mode 100755 index 0000000..a98097e --- /dev/null +++ b/bin/run-shellcheck @@ -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/*"