aboutsummaryrefslogtreecommitdiff
path: root/src/utils/deploy.rs
diff options
context:
space:
mode:
authorAndreas Fuchs2020-11-25 19:08:00 -0500
committernotgne22020-12-02 10:24:23 -0700
commit29ab0624e3ff236669627f7154071e6c555abd85 (patch)
treec336a6af1c98ad2b8e7bb77dc72c6a12eaa7944c /src/utils/deploy.rs
parent6ccc0b7ae981d8cd872af1eae69a2435aa87b8ef (diff)
Use the profile closure's activate script to activate the profile
This gets rid of the "current_exe" vestige that has stuck around from when this program was meant to be standalone; instead, we use the (already known) path to the activate-rs wrapper, which automatically uses the correct binary for the deploy target platform.
Diffstat (limited to 'src/utils/deploy.rs')
-rw-r--r--src/utils/deploy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/deploy.rs b/src/utils/deploy.rs
index a82fa6c..b37909e 100644
--- a/src/utils/deploy.rs
+++ b/src/utils/deploy.rs
@@ -89,7 +89,7 @@ pub async fn deploy_profile(
deploy_data.profile_name, deploy_data.node_name
);
- let activate_path_str = super::deploy_path_to_activate_path_str(&deploy_defs.current_exe)?;
+ let activate_path_str = super::deploy_path_to_activate_path_str(deploy_defs)?;
let temp_path: Cow<str> = match &deploy_data.merged_settings.temp_path {
Some(x) => x.into(),