From 51005f7adb1abe2b260dc168f6e0018478f60812 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 19 May 2015 14:00:17 +0200 Subject: [PATCH] scripts/Bootstrap/Pmodules/modulecmd.in: bugfix in get_hierarchy_depth() --- scripts/Bootstrap/Pmodules/modulecmd.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Bootstrap/Pmodules/modulecmd.in b/scripts/Bootstrap/Pmodules/modulecmd.in index bc3eda1..d4d79c4 100755 --- a/scripts/Bootstrap/Pmodules/modulecmd.in +++ b/scripts/Bootstrap/Pmodules/modulecmd.in @@ -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