mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-30 15:57:46 +01:00
Pmodules/modulecmd
- quote argument for dirname(1) - do NOT use 'declare -r' the variable 'bindir' (not all bourne-compatible shells are supporting this keyword)
This commit is contained in:
1 parent
b23f939948
commit
c8899ef733
1 file changed
+1
-1
+1
-1
@@ -2,5 +2,5 @@
|
||||
|
||||
unset BASH_ENV
|
||||
|
||||
declare -r bindir=$( cd $(dirname $0) && pwd -P )
|
||||
bindir=$( cd $(dirname "$0") && pwd -P )
|
||||
"${bindir}/bash" --noprofile --norc "${bindir}/../libexec/modulecmd.bash" "$@"
|
||||
Reference in new issue
Block a user