mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-13 09:33:59 +01:00
modmange: execute modmanage.bash relative to own path
This commit is contained in:
1 parent
9765a4c0ff
commit
ea64c2bbf8
1 file changed
+7
-1
@@ -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