summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2018-07-18 11:36:22 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2018-07-18 09:36:22 -0700
commitaf8dde4ddaa20bdcc1f191fdc9976cbd8b2aa441 (patch)
treebfc47f1a0e7c3d74e31226afddf613a07026ef87 /share
parent33aa06e1cff4911f59d13b23f6591f797c38e422 (diff)
downloadspack-af8dde4ddaa20bdcc1f191fdc9976cbd8b2aa441.tar.gz
spack-af8dde4ddaa20bdcc1f191fdc9976cbd8b2aa441.tar.bz2
spack-af8dde4ddaa20bdcc1f191fdc9976cbd8b2aa441.tar.xz
spack-af8dde4ddaa20bdcc1f191fdc9976cbd8b2aa441.zip
shell: Add spack to PATH before calling spack in setup-env.csh (#8740)
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/setup-env.csh2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/setup-env.csh b/share/spack/setup-env.csh
index a153374028..cf1059a28f 100755
--- a/share/spack/setup-env.csh
+++ b/share/spack/setup-env.csh
@@ -40,12 +40,12 @@ if ($?SPACK_ROOT) then
alias _spack_pathadd 'set _pa_args = (\!*) && source $_spack_share_dir/csh/pathadd.csh'
# Set variables needed by this script
+ _spack_pathadd PATH "$SPACK_ROOT/bin"
eval `spack --print-shell-vars csh`
# Set up modules and dotkit search paths in the user environment
_spack_pathadd DK_NODE "$_sp_dotkit_root/$_sp_sys_type"
_spack_pathadd MODULEPATH "$_sp_tcl_root/$_sp_sys_type"
- _spack_pathadd PATH "$SPACK_ROOT/bin"
else
echo "ERROR: Sourcing spack setup-env.csh requires setting SPACK_ROOT to the root of your spack installation"
endif