nix-prefetch-url: Stop progress bar before printing results

This commit is contained in:
Eelco Dolstra 2018-11-09 10:34:12 +01:00
parent 220c79ec22
commit 7751616645
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -220,6 +220,8 @@ static int _main(int argc, char * * argv)
assert(storePath == store->makeFixedOutputPath(unpack, hash, name)); assert(storePath == store->makeFixedOutputPath(unpack, hash, name));
} }
stopProgressBar();
if (!printPath) if (!printPath)
printInfo(format("path is '%1%'") % storePath); printInfo(format("path is '%1%'") % storePath);