aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env/nix-env.cc
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-03-16 16:15:11 +0100
committerNaïm Favier <n@monade.li>2022-03-16 21:26:19 +0100
commit8dcecc07387e6a782b4831dcc0d846eceb396191 (patch)
treefc44811cbf2546516aeb75b81cd9a988c2cbee93 /src/nix-env/nix-env.cc
parent57366619229c62ed182514d9ad71ef3aea93d5d6 (diff)
nix-env: print a final newline after JSON
Diffstat (limited to 'src/nix-env/nix-env.cc')
-rw-r--r--src/nix-env/nix-env.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index e68218d1c..a1cd8fd40 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -1057,6 +1057,7 @@ static void opQuery(Globals & globals, Strings opFlags, Strings opArgs)
/* Print the desired columns, or XML output. */
if (jsonOutput) {
queryJSON(globals, elems, printOutPath, printMeta);
+ cout << '\n';
return;
}