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:
2017-01-09 12:14:09 +01:00
parent b23f939948
commit c8899ef733
+1 -1
View File
@@ -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" "$@"