From 920c9d2ed4034e2200c948868c7bd510e58b1371 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Fri, 16 Apr 2021 10:28:01 +0300 Subject: Apply notgne2 suggestions. --- src/bin/activate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/activate.rs') 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) -- cgit v1.2.3