about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-11-09T09·34+0100
committerEelco Dolstra <edolstra@gmail.com>2018-11-09T09·34+0100
commit77516166450008de8c64bb04c67f9b890ddfe38d (patch)
tree37e3b35ae407d86fac732238de73da02eb457446
parent220c79ec22ea71f89f3b2aeb84b77c022e89f5e5 (diff)
nix-prefetch-url: Stop progress bar before printing results
-rw-r--r--src/nix-prefetch-url/nix-prefetch-url.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-prefetch-url/nix-prefetch-url.cc b/src/nix-prefetch-url/nix-prefetch-url.cc
index 54a402241e3d..f54706a8a011 100644
--- a/src/nix-prefetch-url/nix-prefetch-url.cc
+++ b/src/nix-prefetch-url/nix-prefetch-url.cc
@@ -220,6 +220,8 @@ static int _main(int argc, char * * argv)
             assert(storePath == store->makeFixedOutputPath(unpack, hash, name));
         }
 
+        stopProgressBar();
+
         if (!printPath)
             printInfo(format("path is '%1%'") % storePath);