Fix env remove indentation (#40811)
This commit is contained in:
parent
cb018fd7eb
commit
f5d717cd5a
@ -400,13 +400,11 @@ def env_remove(args):
|
||||
if env.active:
|
||||
tty.die(f"Environment {name} can't be removed while activated.")
|
||||
env.destroy()
|
||||
tty.msg(f"Successfully removed environment {name}")
|
||||
tty.msg(f"Successfully removed environment '{name}'")
|
||||
|
||||
for bad_env_name in bad_envs:
|
||||
shutil.rmtree(
|
||||
spack.environment.environment.environment_dir_from_name(
|
||||
bad_env_name, exists_ok=True
|
||||
)
|
||||
spack.environment.environment.environment_dir_from_name(bad_env_name, exists_ok=True)
|
||||
)
|
||||
tty.msg(f"Successfully removed environment '{bad_env_name}'")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user