From 4617b1ff39aea8fe341e5bcd2a47624b4d04efb8 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Wed, 2 Mar 2022 09:17:16 +0100 Subject: [PATCH] modulecmd: search path fixed for macOS - Pmodules libexec directory must be prepended - not appended --- Pmodules/modulecmd.bash.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index a48d586..cc87938 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -18,7 +18,7 @@ source "${libdir}/libstd.bash" source "${libdir}/libpmodules.bash" path="/bin:/usr/bin" -[[ $(uname -s) == 'Darwin' ]] && path+=":${libexecdir}" +[[ $(uname -s) == 'Darwin' ]] && path="${libexecdir}:${path}" std::def_cmds "${path}" \ 'awk' 'base64' 'find' 'getopt' 'logger' 'mktemp' \ 'rm' 'sort' 'find'