aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotgne22020-11-27 18:52:46 -0700
committernotgne22020-11-27 18:52:46 -0700
commit26bad3a2a6497997cb694fb7aa0a70822229ec33 (patch)
treeda9c74b0acd8b045bc2e149e0fcc427ca019fedf
parent7fa67466c75bb0c14659b418b01ce331904b539e (diff)
Quote node and profile names given to `nix build` (relates to #10)
Diffstat (limited to '')
-rw-r--r--src/utils/push.rs4
1 files changed, 2 insertions, 2 deletions
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
))
};