diff options
author | Bryan McLellan <btm@loftninjas.org> | 2012-08-01 13:47:06 -0700 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2012-08-01 13:47:06 -0700 |
commit | c080dbddb914ed967d17b1bcc1d673598ea8dcbf (patch) | |
tree | 64af665031a7563834347fd0dbc0af8310da3f85 | |
parent | 7777e2d9a1d69e576ff402964d8f98c190fd528d (diff) | |
parent | 507d0bc599881a550b8d95ad77400d92306ed1d7 (diff) | |
download | mixlib-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.rb | 6 |
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 |