diff --git a/libraries/sevenzip_command_builder.rb b/libraries/sevenzip_command_builder.rb index 8d8a9934..ff3fd455 100644 --- a/libraries/sevenzip_command_builder.rb +++ b/libraries/sevenzip_command_builder.rb @@ -40,7 +40,7 @@ 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.path}\" /s /e" end def sevenzip_binary @@ -66,7 +66,7 @@ def extension_is_tar if resource.extension =~ /tar.gz|tgz|tar.bz2|tbz|tar.xz|txz/ " -so | #{sevenzip_binary} x -aoa -si -ttar" else - '' + ' -aoa' # force overwrite, Fixes #164 end end