From d517b783d78d8615a31e209219cb007c2473894f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 25 Nov 2024 14:52:47 +0100 Subject: [PATCH] sort,shfmt --- sh/main.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/sh/main.sh b/sh/main.sh index 7da2446..ff80d0d 100644 --- a/sh/main.sh +++ b/sh/main.sh @@ -11,13 +11,13 @@ SH_MAIN="${SH_ROOT}/main.sh" sh_source_check() { local file=".shellcheck.sh" find \ - "." \ - -type "f" \ - -name "*.sh" \ - -not \ - -name "${file}" \ - -printf ". \"%P\"\n" \ - >"${file}" + "." \ + -type "f" \ + -name "*.sh" \ + -not \ + -name "${file}" \ + -printf ". \"%P\"\n" \ + >"${file}" shellcheck \ --check-sourced \ "${file}" @@ -36,7 +36,8 @@ sh_source_find() { -not \ -name "${file}" find "${@}" \ - -printf "%P\n" + -printf "%P\n" | + sort } _sh_main_commands() {