From e5bd558c5b6505621d3b5a27e9b39bf54f6788a1 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Sun, 11 Oct 2020 15:19:09 -0700 Subject: Set working directory during activation to the profile path --- src/activate.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/activate.rs') 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?; -- cgit v1.2.3