mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-30 11:19:39 +02: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
-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