mirror of
https://github.com/grahampugh/macadmin-scripts.git
synced 2025-12-17 17:56:33 +00:00
Merge branch 'munki-main'
This commit is contained in:
commit
e45b738ac9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user