aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
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)