This commit is contained in:
Marc Beninca 2024-11-12 09:51:58 +01:00
parent 6267af5ef8
commit 3a2a6a483c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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