From 26bad3a2a6497997cb694fb7aa0a70822229ec33 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Fri, 27 Nov 2020 18:52:46 -0700 Subject: Quote node and profile names given to `nix build` (relates to #10) --- src/utils/push.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/utils/push.rs b/src/utils/push.rs index f6330b5..342cd65 100644 --- a/src/utils/push.rs +++ b/src/utils/push.rs @@ -48,12 +48,12 @@ pub async fn push_profile( let mut build_command = if supports_flakes { build_c.arg("build").arg(format!( - "{}#deploy.nodes.{}.profiles.{}.path", + "{}#deploy.nodes.\"{}\".profiles.\"{}\".path", repo, deploy_data.node_name, deploy_data.profile_name )) } else { build_c.arg(&repo).arg("-A").arg(format!( - "deploy.nodes.{}.profiles.{}.path", + "deploy.nodes.\"{}\".profiles.\"{}\".path", deploy_data.node_name, deploy_data.profile_name )) }; -- cgit v1.2.3