main
This commit is contained in:
parent
6267af5ef8
commit
3a2a6a483c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue