From 71671f9ff33d5c05741d0d800130fa244e512ecc Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 7 Jun 2022 09:49:11 +0200 Subject: [PATCH] always add Pmodules libexec dir to search path to find and set binaries --- Pmodules/modulecmd.bash.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index 65d17a7..55532a3 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -27,8 +27,7 @@ source "${libdir}/libpmodules.bash" declare -r os_name="$(uname -s)" -path="/bin:/usr/bin" -[[ ${os_name} == 'Darwin' ]] && path="${libexecdir}:${path}" +path="${libexecdir}:/bin:/usr/bin" std::def_cmds "${path}" \ 'awk' 'base64' 'find' 'getopt' 'logger' 'mktemp' \ 'rm' 'sort' 'find' 'yq'