sort bash modules

This commit is contained in:
Marc Beninca 2023-06-19 15:08:06 +02:00
parent 6455d789aa
commit 25a8c2f30b

View file

@ -17,7 +17,7 @@ if [ -f "${file}" ] ; then
local path="$(realpath "${file}")" local path="$(realpath "${file}")"
local root="$(dirname "${path}")" local root="$(dirname "${path}")"
local IFS=$'\n' local IFS=$'\n'
local modules=($(find "${root}" -type 'f' -name '*.sh')) local modules=($(find "${root}" -type 'f' -name '*.sh' | sort))
local module local module
for module in "${modules[@]}" ; do for module in "${modules[@]}" ; do
if [ "${module}" != "${path}" ] ; then if [ "${module}" != "${path}" ] ; then