summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2016-07-14 20:14:06 +0200
committerMichael Kuhn <suraia@ikkoku.de>2016-07-14 20:14:06 +0200
commit64d91943ec3773a539ef39be4e9ab5ab132df01a (patch)
tree474c7b6a7d96b2acd258acba877b5dd28180dbe8 /share
parentfcfe2618d50b39e8991685dc2f42f1495951da7e (diff)
downloadspack-64d91943ec3773a539ef39be4e9ab5ab132df01a.tar.gz
spack-64d91943ec3773a539ef39be4e9ab5ab132df01a.tar.bz2
spack-64d91943ec3773a539ef39be4e9ab5ab132df01a.tar.xz
spack-64d91943ec3773a539ef39be4e9ab5ab132df01a.zip
Support --dependencies for recursively loading modules.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/setup-env.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh
index c5245add5e..19206255db 100755
--- a/share/spack/setup-env.sh
+++ b/share/spack/setup-env.sh
@@ -101,7 +101,7 @@ function spack {
_sp_subcommand_args=""
_sp_module_args=""
while [[ "$1" =~ ^- ]]; do
- if [ "$1" = "-r" ]; then
+ if [ "$1" = "-r" -o "$1" = "--dependencies" ]; then
_sp_subcommand_args="$_sp_subcommand_args $1"
else
_sp_module_args="$_sp_module_args $1"