From e6ff299df50fe5db6037a0800144a22e4157b2c6 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Thu, 20 Jan 2022 11:54:48 +0100 Subject: shellcheck --- shellcheck.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 shellcheck.sh (limited to 'shellcheck.sh') diff --git a/shellcheck.sh b/shellcheck.sh new file mode 100755 index 0000000..7c8dc6e --- /dev/null +++ b/shellcheck.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +find "$(dirname "$0")" -maxdepth 1 -type f -executable -exec \ + sh -c ' +if head -n1 "$1" | egrep -q "sh$"; then + echo "====== CHECKING $1 ======"; + shellcheck "$1"; +fi + ' shell {} \; -- cgit v1.2.3