We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91590f2 commit ec2f1c0Copy full SHA for ec2f1c0
lib/instance_agent/platform/linux_util.rb
@@ -51,11 +51,8 @@ def self.extract_tar(bundle_file, dst)
51
def self.extract_zip(bundle_file, dst)
52
log(:debug, "extract_zip - dst : #{dst}")
53
FileUtils.mkdir_p(dst)
54
- working_dir = FileUtils.pwd()
55
absolute_bundle_path = File.expand_path(bundle_file)
56
- FileUtils.cd(dst)
57
- execute_zip_command("unzip -qo #{absolute_bundle_path}")
58
- FileUtils.cd(working_dir)
+ execute_zip_command("unzip -qo #{absolute_bundle_path} -d #{dst}")
59
end
60
61
def self.extract_tgz(bundle_file, dst)
0 commit comments