fixes
This commit is contained in:
parent
f163abbd37
commit
976cb6e919
1 changed files with 3 additions and 3 deletions
|
@ -4,14 +4,14 @@ MAIN_BASH_FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||||
|
|
||||||
MAIN_BASH_ROOT="$(dirname "${MAIN_BASH_FILE}")"
|
MAIN_BASH_ROOT="$(dirname "${MAIN_BASH_FILE}")"
|
||||||
|
|
||||||
function main_link_bashrc {
|
main_link_bashrc() {
|
||||||
local file='/etc/bash.bashrc'
|
local file='/etc/bash.bashrc'
|
||||||
rm --force "${file}"
|
rm --force "${file}"
|
||||||
ln --symbolic "${MAIN_BASH_FILE}" "${file}"
|
ln --symbolic "${MAIN_BASH_FILE}" "${file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# import modules
|
# import modules
|
||||||
function main_import_modules {
|
main_import_modules() {
|
||||||
local file="${1}"
|
local file="${1}"
|
||||||
if [ -f "${file}" ] ; then
|
if [ -f "${file}" ] ; then
|
||||||
local path="$(realpath "${file}")"
|
local path="$(realpath "${file}")"
|
||||||
|
@ -21,7 +21,7 @@ if [ -f "${file}" ] ; then
|
||||||
local module
|
local module
|
||||||
for module in "${modules[@]}" ; do
|
for module in "${modules[@]}" ; do
|
||||||
if [ "${module}" != "${path}" ] ; then
|
if [ "${module}" != "${path}" ] ; then
|
||||||
source "${module}"
|
. "${module}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
log_trace "${modules[@]}"
|
log_trace "${modules[@]}"
|
||||||
|
|
Loading…
Reference in a new issue