From 3a2a6a483c235d39b6710ecd2de0539da04a041b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 12 Nov 2024 09:51:58 +0100 Subject: [PATCH] main --- bash/main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bash/main.sh b/bash/main.sh index dacbbfc..7df12eb 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -5,7 +5,7 @@ MAIN_BASH_FILE="$(realpath "${BASH_SOURCE[0]}")" MAIN_BASH_ROOT="$(dirname "${MAIN_BASH_FILE}")" main_link_bashrc() { - local file='/etc/bash.bashrc' + local file="/etc/bash.bashrc" rm --force "${file}" ln --symbolic "${MAIN_BASH_FILE}" "${file}" } @@ -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' | sort)) + local modules=($(find "${root}" -type "f" -name "*.sh" | sort)) local module for module in "${modules[@]}" ; do if [ "${module}" != "${path}" ] ; then