Set LANG= for _spack_fn_exists (#5475)
type's output can be localized, causing the grep to fail.
This commit is contained in:
parent
e3e030cf76
commit
f45916fad2
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue