path,root
This commit is contained in:
parent
7398fa0726
commit
28330ca3c8
1 changed files with 4 additions and 2 deletions
|
@ -14,8 +14,10 @@ main_link_bashrc() {
|
|||
main_import_modules() {
|
||||
local file="${1}"
|
||||
if [ -f "${file}" ]; then
|
||||
local path="$(realpath "${file}")"
|
||||
local root="$(dirname "${path}")"
|
||||
local path
|
||||
local root
|
||||
path="$(realpath "${file}")"
|
||||
root="$(dirname "${path}")"
|
||||
local IFS=$'\n'
|
||||
local modules=($(find "${root}" -type "f" -name "*.sh" | sort))
|
||||
local module
|
||||
|
|
Loading…
Reference in a new issue