mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-02 12:00:48 +02:00
modulecmd: derive prefix from location of script
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
unset BASH_ENV
|
||||
|
||||
"${PMODULES_HOME}/libexec/bash" --noprofile --norc "${PMODULES_HOME}/libexec/modulecmd.bash" "$@"
|
||||
origin="${BASH_SOURCE[0]%/*}"
|
||||
"${origin}/../libexec/bash" --noprofile --norc "${origin}/../libexec/modulecmd.bash" "$@"
|
||||
|
||||
Reference in New Issue
Block a user