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