summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2012-08-01 13:47:06 -0700
committerBryan McLellan <btm@loftninjas.org>2012-08-01 13:47:06 -0700
commitc080dbddb914ed967d17b1bcc1d673598ea8dcbf (patch)
tree64af665031a7563834347fd0dbc0af8310da3f85
parent7777e2d9a1d69e576ff402964d8f98c190fd528d (diff)
parent507d0bc599881a550b8d95ad77400d92306ed1d7 (diff)
downloadmixlib-shellout-c080dbddb914ed967d17b1bcc1d673598ea8dcbf.tar.gz
Merge pull request #5 from acm1/master
[COOK-1485] added empty 'title' argument to all uses of 'start' to fix issue with quoted paths
-rw-r--r--providers/package.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/providers/package.rb b/providers/package.rb
index 7f88e3b..ec9d5bf 100644
--- a/providers/package.rb
+++ b/providers/package.rb
@@ -131,7 +131,7 @@ def remove_package(name, version)
"#{uninstall_string} /qn"
else
uninstall_string.gsub!('"','')
- "start /wait /d\"#{::File.dirname(uninstall_string)}\" #{::File.basename(uninstall_string)}#{expand_options(@new_resource.options)} /S"
+ "start \"\" /wait /d\"#{::File.dirname(uninstall_string)}\" #{::File.basename(uninstall_string)}#{expand_options(@new_resource.options)} /S"
end
end
Chef::Log.info("Removing #{@new_resource} with uninstall command '#{uninstall_command}'")
@@ -145,7 +145,7 @@ def install_command_template
when :msi
"msiexec%2$s %1$s%3$s"
else
- "start /wait %1$s%2$s%3$s"
+ "start \"\" /wait %1$s%2$s%3$s"
end
end
@@ -154,7 +154,7 @@ def uninstall_command_template
when :msi
"msiexec %2$s %1$s"
else
- "start /wait /d%1$s %2$s %3$s"
+ "start \"\" /wait /d%1$s %2$s %3$s"
end
end