aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorOleg Pykhalov2021-04-16 10:28:01 +0300
committerOleg Pykhalov2021-04-16 12:38:37 +0300
commit920c9d2ed4034e2200c948868c7bd510e58b1371 (patch)
tree2737004639587c3713b92f6f00fa7be99b9d9f38 /src/bin
parent6093dc02e98ae68f73c997c8d5d18f19074a46e1 (diff)
Apply notgne2 suggestions.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/activate.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/activate.rs b/src/bin/activate.rs
index 73d064f..da53174 100644
--- a/src/bin/activate.rs
+++ b/src/bin/activate.rs
@@ -378,9 +378,9 @@ pub async fn activate(
debug!("Running activation script");
let activate_status = match Command::new(format!("{}/deploy-rs-activate", profile_path))
- .env("PROFILE", &closure)
+ .env("PROFILE", if dry_activate { &closure } else { &profile_path })
.env("DRY_ACTIVATE", if dry_activate { "1" } else { "0" })
- .current_dir(&closure)
+ .current_dir(if dry_activate { &closure } else { &profile_path })
.status()
.await
.map_err(ActivateError::RunActivateError)