From 976cb6e919eb925076c252e9525c8745a357976b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 12 Nov 2024 07:44:21 +0100 Subject: [PATCH] fixes --- bash/main.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash/main.sh b/bash/main.sh index 59788aa..dacbbfc 100644 --- a/bash/main.sh +++ b/bash/main.sh @@ -4,14 +4,14 @@ MAIN_BASH_FILE="$(realpath "${BASH_SOURCE[0]}")" MAIN_BASH_ROOT="$(dirname "${MAIN_BASH_FILE}")" -function main_link_bashrc { +main_link_bashrc() { local file='/etc/bash.bashrc' rm --force "${file}" ln --symbolic "${MAIN_BASH_FILE}" "${file}" } # import modules -function main_import_modules { +main_import_modules() { local file="${1}" if [ -f "${file}" ] ; then local path="$(realpath "${file}")" @@ -21,7 +21,7 @@ if [ -f "${file}" ] ; then local module for module in "${modules[@]}" ; do if [ "${module}" != "${path}" ] ; then - source "${module}" + . "${module}" fi done log_trace "${modules[@]}"