Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
Enclose download URL in single quotes
Browse files Browse the repository at this point in the history
Solves an issue trying to install a package with an ampersand in the URL
  • Loading branch information
acaire committed Nov 8, 2014
1 parent 53eac5a commit f1bb407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/library/mac_pkg
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class Archive(object):
os.unlink(file_path)

if do_download:
download_cmd = "%s --insecure --silent --location %s %s %s" % (
download_cmd = "%s --insecure --silent --location %s %s '%s'" % (
self.curl_path, output_opts, curl_opts, url)
# self.module.exit_json(changed=False, msg="download_cmd %s" % download_cmd)
rc, out, err = run_command(self.module, download_cmd, cwd=cwd)
Expand Down

0 comments on commit f1bb407

Please sign in to comment.