From acfb6b710e472f86c0b776640133190052445cf2 Mon Sep 17 00:00:00 2001 From: Eric Griswold Date: Wed, 21 Sep 2022 16:51:44 -0700 Subject: [PATCH] (RE-14819) Add back gunzip --- lib/beaker-pe/install/pe_utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/beaker-pe/install/pe_utils.rb b/lib/beaker-pe/install/pe_utils.rb index 0cf546b..aa52fe2 100644 --- a/lib/beaker-pe/install/pe_utils.rb +++ b/lib/beaker-pe/install/pe_utils.rb @@ -365,7 +365,7 @@ def fetch_pe_on_unix(host, opts) filename = "#{host['dist']}" if local extension = File.exist?("#{path}/#{filename}.tar.gz") ? ".tar.gz" : ".tar" - if not File.exist?("#{path}/#{filename}#{extension}") + unless File.exist?("#{path}/#{filename}#{extension}") raise "attempting installation on #{host}, #{path}/#{filename}#{extension} does not exist" end scp_to host, "#{path}/#{filename}#{extension}", "#{host['working_dir']}/#{filename}#{extension}" @@ -405,7 +405,7 @@ def fetch_pe_on_unix(host, opts) } fetch_tarball_command = "cd #{host['working_dir']}; #{command_file_push}#{filename}#{extension}" retry_on(host, fetch_tarball_command, retry_requirements) - #on host, "cd #{host['working_dir']}; tar -xvf #{filename}#{extension}" + on host, "cd #{host['working_dir']}; tar -xvf #{filename}#{extension}" gpg_key_overwrite(host, 'tarball') end