Set LANG= for _spack_fn_exists (#5475)

type's output can be localized, causing the grep to fail.
This commit is contained in:
Michael Kuhn 2017-09-26 21:28:50 +02:00 committed by scheibelp
parent e3e030cf76
commit f45916fad2

View file

@ -210,7 +210,7 @@ export SPACK_SHELL=$(_spack_determine_shell)
# Check whether a function of the given name is defined
#
function _spack_fn_exists() {
type $1 2>&1 | grep -q 'function'
LANG= type $1 2>&1 | grep -q 'function'
}
need_module="no"