From 25a8c2f30b4af99db7c087e5e7468a340c04921f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 19 Jun 2023 15:08:06 +0200 Subject: [PATCH] sort bash modules --- bash/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/main.sh b/bash/main.sh index ce04a8a..6a16fc5 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -17,7 +17,7 @@ if [ -f "${file}" ] ; then local path="$(realpath "${file}")" local root="$(dirname "${path}")" local IFS=$'\n' - local modules=($(find "${root}" -type 'f' -name '*.sh')) + local modules=($(find "${root}" -type 'f' -name '*.sh' | sort)) local module for module in "${modules[@]}" ; do if [ "${module}" != "${path}" ] ; then