From f1bb4077107079f6d92b0834b5e3e4b093477421 Mon Sep 17 00:00:00 2001 From: Ash Caire Date: Sat, 8 Nov 2014 18:12:03 +1100 Subject: [PATCH] Enclose download URL in single quotes Solves an issue trying to install a package with an ampersand in the URL --- share/library/mac_pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/library/mac_pkg b/share/library/mac_pkg index eec3008..4abf22b 100644 --- a/share/library/mac_pkg +++ b/share/library/mac_pkg @@ -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)