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=''