From 3adc593f19962cccf49f8f5194394e0d93502677 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 18 Dec 2020 10:28:42 -0700 Subject: Fix fast_connection flag to enable substitute-on-destination correctly --- src/utils/push.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/push.rs') diff --git a/src/utils/push.rs b/src/utils/push.rs index b0a8b2f..503e062 100644 --- a/src/utils/push.rs +++ b/src/utils/push.rs @@ -134,7 +134,7 @@ pub async fn push_profile( let mut copy_command_ = Command::new("nix"); let mut copy_command = copy_command_.arg("copy"); - if let Some(true) = deploy_data.merged_settings.fast_connection { + if deploy_data.merged_settings.fast_connection != Some(true) { copy_command = copy_command.arg("--substitute-on-destination"); } -- cgit v1.2.3