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 9cc5e60 commit bf75bdbCopy full SHA for bf75bdb
lib/instance_agent/platform/linux_util.rb
@@ -40,12 +40,12 @@ def self.script_executable?(path)
40
41
def self.extract_tar(bundle_file, dst)
42
FileUtils.mkdir_p(dst)
43
- execute_tar_command("pushd #{dst} && /bin/tar -xpsf #{bundle_file} && popd")
+ execute_tar_command("/bin/tar -xpsf #{bundle_file} -C #{dst}")
44
end
45
46
def self.extract_tgz(bundle_file, dst)
47
48
- execute_tar_command("pushd #{dst} && /bin/tar -zxpsf #{bundle_file} && popd")
+ execute_tar_command("/bin/tar -zxpsf #{bundle_file} -C #{dst}")
49
50
51
def self.supports_process_groups?()
0 commit comments