Commit 51005f7a authored by gsell's avatar gsell
Browse files

scripts/Bootstrap/Pmodules/modulecmd.in: bugfix in get_hierarchy_depth()

parent 524d4b05
......@@ -954,7 +954,7 @@ get_hierarchy_depth () {
{
cd "${module_hierarchy_root}"
for family in "${FAMILIES[@]}"; do
local tmp=$(find "${family}" -depth -type f -o -type l | head -1)
local tmp=$(find "${family}/" -depth -type f -o -type l | head -1)
local -a tmp2=( ${tmp//\// } )
local depth=${#tmp2[@]}
let depth-=3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment