diff --git a/libraries/sevenzip_command_builder.rb b/libraries/sevenzip_command_builder.rb index 8d8a9934..23b2d9ee 100644 --- a/libraries/sevenzip_command_builder.rb +++ b/libraries/sevenzip_command_builder.rb @@ -40,11 +40,11 @@ def sevenzip_command currdir += "\\%#{count}" end - cmd += "#{ENV.fetch('SystemRoot')}\\System32\\xcopy \"#{currdir}\" \"#{resource.home_dir}\" /s /e" + cmd += "\"#{ENV.fetch('SystemRoot')}\\System32\\xcopy\" \"#{currdir}\" \"#{resource.home_dir}\" /s /e" end def sevenzip_binary - @tar_binary ||= (node['ark']['sevenzip_binary'] || sevenzip_path_from_registry) + @tar_binary ||= "\"#{(node['ark']['sevenzip_binary'] || sevenzip_path_from_registry)}\"" end def sevenzip_path_from_registry