mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 18:59:39 +02:00
modulecmd: use of unset variable fixed in find_modulefile()
This commit is contained in:
@@ -1406,14 +1406,14 @@ find_modulefile(){
|
||||
|
||||
local -a modulepath=()
|
||||
IFS=':' read -r -a modulepath <<<"${MODULEPATH}"
|
||||
if [[ "${m:0:1}" = '/' || -r "${m}" ]]; then
|
||||
if [[ "${modulename:0:1}" = '/' || -r "${modulename}" ]]; then
|
||||
# handle absolut or relative module names
|
||||
local -- absname=$(std::get_abspath "${m}")
|
||||
local -- ol_name=''
|
||||
local -- group=''
|
||||
find_overlay ol_name group "${absname}"
|
||||
[[ "${ol_name}" != 'none' ]] && \
|
||||
die_ol_absname_not_allowed "${m}"
|
||||
die_ol_absname_not_allowed "${modulename}"
|
||||
ref_modulefile="${absname}"
|
||||
ref_relstage='stable'
|
||||
ref_moduledir="${absname%/*}"
|
||||
|
||||
Reference in New Issue
Block a user