aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotgne22020-10-11 15:19:09 -0700
committernotgne22020-10-11 15:19:09 -0700
commite5bd558c5b6505621d3b5a27e9b39bf54f6788a1 (patch)
treef196c3b5fbec9a6d097cd0b73898c3db12052e7b
parentf2e5b9b39303ec66142caadad6aea74ee56a4c93 (diff)
Set working directory during activation to the profile path
-rw-r--r--src/activate.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/activate.rs b/src/activate.rs
index 38fc832..0b7d28d 100644
--- a/src/activate.rs
+++ b/src/activate.rs
@@ -77,6 +77,7 @@ pub async fn activate(
let activate_status = Command::new(format!("{}/deploy-rs-activate", profile_path))
.env("PROFILE", &profile_path)
+ .current_dir(&profile_path)
.status()
.await;
@@ -144,6 +145,7 @@ pub async fn activate(
let re_activate_exit_status = Command::new(format!("{}/deploy-rs-activate", profile_path))
.env("PROFILE", &profile_path)
+ .current_dir(&profile_path)
.status()
.await?;