Lines 69-74
die() {
Link Here
|
69 |
# Find module and echo its filename. Die if module doesn't exist. |
69 |
# Find module and echo its filename. Die if module doesn't exist. |
70 |
find_module() { |
70 |
find_module() { |
71 |
local modname=$1 modpath |
71 |
local modname=$1 modpath |
|
|
72 |
|
73 |
if [[ ${modname} == *.eselect && -f ${modname} ]]; then |
74 |
echo "${modname}" |
75 |
return |
76 |
fi |
77 |
|
78 |
if [[ ${modname} == */* ]]; then |
79 |
die -q "Can't load module ${modname}" |
80 |
fi |
81 |
|
72 |
for modpath in "${ESELECT_MODULES_PATH[@]}"; do |
82 |
for modpath in "${ESELECT_MODULES_PATH[@]}"; do |
73 |
if [[ -f ${modpath}/${modname}.eselect ]]; then |
83 |
if [[ -f ${modpath}/${modname}.eselect ]]; then |
74 |
echo "${modpath}/${modname}.eselect" |
84 |
echo "${modpath}/${modname}.eselect" |
75 |
- |
|
|