From e891ab216acc912236047b519b5abe5f34ce1f2a Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 30 Nov 2020 16:53:25 +0100 Subject: [PATCH] search order for modulefiles fixed --- Pmodules/libpbuild.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index c17ae10..48eda4c 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -723,9 +723,9 @@ pbuild::make_all() { find_modulefile() { local "$1" local fnames=() - fnames+=( "modulefile-${V_MAJOR}" ) - fnames+=( "modulefile-${V_MAJOR}.${V_MINOR}" ) fnames+=( "modulefile-${V_MAJOR}.${V_MINOR}.${V_PATCHLVL}" ) + fnames+=( "modulefile-${V_MAJOR}.${V_MINOR}" ) + fnames+=( "modulefile-${V_MAJOR}" ) fnames+=( "modulefile" ) local fname='' local modulefile=''