diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/util/environment.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/util/environment.py b/lib/spack/spack/util/environment.py index c7ea4d67f4..1666f4711e 100644 --- a/lib/spack/spack/util/environment.py +++ b/lib/spack/spack/util/environment.py @@ -542,6 +542,7 @@ class EnvironmentModifications(object): search = sep.join(after_list[start:end + 1]) except IndexError: env.prepend_path(x, after) + continue if search not in before: # We just need to set the variable to the new value |