lib/pmdtester/runner.rb in pmdtester-1.4.1 vs lib/pmdtester/runner.rb in pmdtester-1.5.0
- old
+ new
@@ -95,11 +95,11 @@
logger.info "Downloading baseline for branch #{branch_name} from #{url}"
wget_cmd = "wget --timestamping #{url}"
unzip_cmd = "unzip -qo #{zip_filename}"
Dir.chdir(target_path) do
- Cmd.execute(wget_cmd) unless File.exist?(zip_filename)
- Cmd.execute(unzip_cmd)
+ Cmd.execute_successfully(wget_cmd) unless File.exist?(zip_filename)
+ Cmd.execute_successfully(unzip_cmd)
end
"#{target_path}/#{branch_filename}"
end