Skip to content

Commit

Permalink
Always quote the sevenzip_binary path and path to xcopy.
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Williams <[email protected]>
  • Loading branch information
sgtcoolguy committed Nov 17, 2016
1 parent e8fdfb1 commit 001def6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/sevenzip_command_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 001def6

Please sign in to comment.