diff --git a/installinstallmacos.py b/installinstallmacos.py index 05bad4e..4209ec3 100755 --- a/installinstallmacos.py +++ b/installinstallmacos.py @@ -239,9 +239,10 @@ def replicate_url(full_url, curl_cmd = ['/usr/bin/curl', options, '--create-dirs', '-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: curl_cmd.extend(['-C', '-']) + else: + curl_cmd.extend(['-z', local_file_path]) curl_cmd.append(full_url) print("Downloading %s..." % full_url) try: