Set working directory during activation to the profile path

This commit is contained in:
notgne2 2020-10-11 15:19:09 -07:00
parent f2e5b9b393
commit e5bd558c5b
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8

View File

@ -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?;