mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-23 00:07:57 +02:00
modmange: execute modmanage.bash relative to own path
This commit is contained in:
@@ -2,4 +2,10 @@
|
||||
|
||||
unset BASH_ENV
|
||||
|
||||
"@BASH@" --noprofile --norc "@MODMANAGE@" "$@"
|
||||
declare mydir=$(cd $(dirname "$0") && pwd)
|
||||
declare libexecdir="$(dirname "${mydir}")/libexec"
|
||||
|
||||
declare bash="${libexecdir}/bash"
|
||||
declare modmanage="${libexecdir}/modmanage.bash"
|
||||
|
||||
"${bash}" --noprofile --norc "${modmanage}" "$@"
|
||||
|
||||
Reference in New Issue
Block a user