diff --git a/installinstallmacos.py b/installinstallmacos.py index 155a7ed..9de853b 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -382,8 +382,11 @@ def replicate_url( if show_progress: options = "-fL" else: - options = "-sfL" - curl_cmd = ["/usr/bin/curl", options, "--create-dirs", "-o", local_file_path] + options = '-sfL' + curl_cmd = ['/usr/bin/curl', options, + '--create-dirs', + '--compressed', + '-o', local_file_path] if not ignore_cache and os.path.exists(local_file_path): curl_cmd.extend(["-z", local_file_path]) if attempt_resume: @@ -807,12 +810,10 @@ def main(): bad_dirs = ["Documents", "Desktop", "Downloads", "Library"] for bad_dir in bad_dirs: if bad_dir in os.path.split(current_dir): - print( - "Running this script from %s may not work as expected. " - "If this does not run as expected, please run again from " - "somewhere else, such as /Users/Shared." % current_dir, - file=sys.stderr, - ) + print('Running this script from %s may not work as expected. ' + 'If this does not run as expected, please run again from ' + 'somewhere else, such as /Users/Shared.' + % current_dir, file=sys.stderr) if args.catalogurl: su_catalog_url = args.catalogurl