From 321070d5cc825d027439738a6f17e251b6c80f66 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 29 Nov 2024 12:17:39 +0100 Subject: [PATCH] +shfmt --- sh/shellcheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sh/shellcheck.sh b/sh/shellcheck.sh index 567568c..7b04827 100644 --- a/sh/shellcheck.sh +++ b/sh/shellcheck.sh @@ -1,11 +1,13 @@ sh_shellcheck() { local root="${1}" - local file module modules + local file module modules path file="$(mktemp)" modules="$(sh_find_sh "${root}")" _sh_ifs_new for module in ${modules}; do - echo ". \"${root}/${module}\"" >>"${file}" + path="${root}/${module}" + shfmt --diff "${path}" + echo ". \"${path}\"" >>"${file}" done _sh_ifs_pop shellcheck \