Skip to content

Commit

Permalink
Merge pull request #289 from davidcaste/fix-url
Browse files Browse the repository at this point in the history
Fix requires.files.file(url) when url contains '&'
  • Loading branch information
hobbestigrou committed Nov 2, 2016
2 parents 07f3ced + 28b4a45 commit 2eb9327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabtools/require/files.py
Expand Up @@ -144,7 +144,7 @@ def file(path=None, contents=None, source=None, url=None, md5=None,
path = os.path.basename(urlparse(url).path)

if not is_file(path) or md5 and md5sum(path) != md5:
func('wget --progress=dot:mega %(url)s -O %(path)s' % locals())
func('wget --progress=dot:mega "%(url)s" -O "%(path)s"' % locals())

# 3) A local filename, or a content string, is specified
else:
Expand Down

0 comments on commit 2eb9327

Please sign in to comment.