Merge branch '4877-dont-delete-stdout'
[arvados.git] / sdk / python / bin / arv-get
index 0059f3faef01046cfbdb308a5f72bea071d58ea6..2451416dae38da1932f22fb7c6599b8a82e55110 100755 (executable)
@@ -143,6 +143,8 @@ if not get_prefix:
             abort("failed to download '{}': {}".format(collection, error))
     sys.exit(0)
 
+reader.normalize()
+
 # Scan the collection. Make an array of (stream, file, local
 # destination filename) tuples, and add up total size to extract.
 todo = []
@@ -214,7 +216,7 @@ for s,f,outfilename in todo:
             sys.stderr.write("%s  %s/%s\n"
                              % (digestor.hexdigest(), s.name(), f.name()))
     except KeyboardInterrupt:
-        if outfile and outfile != '/dev/stdout':
+        if outfile and outfilename != '/dev/stdout':
             os.unlink(outfilename)
         break