From 0cc06b6de097d63a626874134bcb57f100f88aac Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 13 Nov 2024 09:43:27 +0100 Subject: [PATCH] shfmt --- bash/main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash/main.sh b/bash/main.sh index 797aed1..4442460 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -13,14 +13,14 @@ main_link_bashrc() { # import modules main_import_modules() { local file="${1}" - if [ -f "${file}" ] ; then + if [ -f "${file}" ]; then local path="$(realpath "${file}")" local root="$(dirname "${path}")" local IFS=$'\n' local modules=($(find "${root}" -type "f" -name "*.sh" | sort)) local module - for module in "${modules[@]}" ; do - if [ "${module}" != "${path}" ] ; then + for module in "${modules[@]}"; do + if [ "${module}" != "${path}" ]; then . "${module}" fi done