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 50db2ec commit e0f552aCopy full SHA for e0f552a
lib/instance_agent/platform/linux_util.rb
@@ -40,12 +40,18 @@ def self.script_executable?(path)
40
41
def self.extract_tar(bundle_file, dst)
42
FileUtils.mkdir_p(dst)
43
- execute_tar_command("/bin/tar -xpsf #{bundle_file} -C #{dst}")
+ working_dir = FileUtils.pwd()
44
+ FileUtils.cd(dst)
45
+ execute_tar_command("/bin/tar -xpsf #{bundle_file}")
46
+ FileUtils.cd(working_dir)
47
end
48
49
def self.extract_tgz(bundle_file, dst)
50
- execute_tar_command("/bin/tar -zxpsf #{bundle_file} -C #{dst}")
51
52
53
+ execute_tar_command("/bin/tar -zxpsf #{bundle_file}")
54
55
56
57
def self.supports_process_groups?()
0 commit comments