nix path-info: Remove trailing spaces

Fixes #2390.
This commit is contained in:
Eelco Dolstra 2018-09-01 00:04:57 +02:00
parent 4095cd6438
commit b7409c5754
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -103,7 +103,10 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
auto info = store->queryPathInfo(storePath);
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)
printSize(info->narSize);