diff --git a/build/fbcode_builder/getdeps/fetcher.py b/build/fbcode_builder/getdeps/fetcher.py index b1c113f46781..f02dd447bf75 100644 --- a/build/fbcode_builder/getdeps/fetcher.py +++ b/build/fbcode_builder/getdeps/fetcher.py @@ -683,15 +683,18 @@ def progress_pycurl(self, total, amount, _uploadtotal, _uploadamount): start = time.time() try: if os.environ.get("GETDEPS_USE_WGET") is not None: - subprocess.run( + procargs = ( [ "wget", + ] + + os.environ.get("GETDEPS_WGET_ARGS", "").split() + + [ "-O", file_name, url, ] ) - + subprocess.run(procargs, capture_output=True) headers = None elif os.environ.get("GETDEPS_USE_LIBCURL") is not None: