Quote attribute name.

This commit is contained in:
r-vdp 2023-05-12 16:31:05 +02:00
parent f4c58ce90b
commit c6898f239c
No known key found for this signature in database

View file

@ -155,7 +155,7 @@ fn try_nix_eval(flake: &str, attr: &str) -> Result<bool> {
.arg(format!("{flake}#{FLAKE_ATTR}"))
.arg("--json")
.arg("--apply")
.arg(format!("a: a ? {attr}"))
.arg(format!("a: a ? \"{attr}\""))
.stderr(process::Stdio::inherit())
.output()?;
if output.status.success() {