diff options
-rw-r--r-- | cerbero/utils/shell.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cerbero/utils/shell.py b/cerbero/utils/shell.py index 1e9260ad..995ae759 100644 --- a/cerbero/utils/shell.py +++ b/cerbero/utils/shell.py @@ -387,10 +387,10 @@ async def download(url, dest, check_cert=True, overwrite=False, logfile=None, mi urls += [urllib.parse.urljoin(u + '/', filename) for u in mirrors] if sys.platform.startswith('win'): - cmd = ['powershell', '-Command', '& { Set-Variable -Name ' \ + cmd = ['powershell', '-Command', 'Set-Variable -Name ' \ 'ProgressPreference -Value \'SilentlyContinue\'; ' \ f'Invoke-WebRequest -UserAgent {user_agent} -OutFile {dest} ' \ - '-Method Get -Uri %s }'] + '-Method Get -Uri %s'] elif which('wget'): cmd = ['wget', '--user-agent', user_agent, '--tries=2', '--timeout=20', '--progress=dot:giga', '-O', dest] |