diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-09 22:40:24 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-09 22:40:24 -0500 |
commit | 973346c5e426d6a1b684d36ba779bf3e8f5b71b1 (patch) | |
tree | aacdc0396a4d9f090b9e3e8bd0261218b7f79900 /src/env.rs | |
parent | f75dda7269a8ac69f16db86c6a7914bbf97a9ddf (diff) | |
download | nbsh-973346c5e426d6a1b684d36ba779bf3e8f5b71b1.tar.gz nbsh-973346c5e426d6a1b684d36ba779bf3e8f5b71b1.zip |
update the environment after every pipeline
Diffstat (limited to 'src/env.rs')
-rw-r--r-- | src/env.rs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -109,7 +109,11 @@ impl Env { } } - pub fn update(&mut self) -> anyhow::Result<()> { + pub fn update( + &mut self, + status: std::process::ExitStatus, + ) -> anyhow::Result<()> { + self.set_status(status); self.set_current_dir(std::env::current_dir()?); self.set_vars(std::env::vars_os()); Ok(()) |