Skip to content
Snippets Groups Projects
Unverified Commit b7409c57 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

nix path-info: Remove trailing spaces

Fixes #2390.
parent 4095cd64
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,10 @@ struct CmdPathInfo : StorePathsCommand, MixJSON ...@@ -103,7 +103,10 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
auto info = store->queryPathInfo(storePath); auto info = store->queryPathInfo(storePath);
storePath = info->path; // FIXME: screws up padding storePath = info->path; // FIXME: screws up padding
std::cout << storePath << std::string(std::max(0, (int) pathLen - (int) storePath.size()), ' '); std::cout << storePath;
if (showSize || showClosureSize || showSigs)
std::cout << std::string(std::max(0, (int) pathLen - (int) storePath.size()), ' ');
if (showSize) if (showSize)
printSize(info->narSize); printSize(info->narSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment