lib/github-status/support/params.rb in concourse-github-status-0.7.0 vs lib/github-status/support/params.rb in concourse-github-status-0.7.1

- old
+ new

@@ -38,11 +38,11 @@ end Contract None => String def target_url url = params.fetch 'target_url', "#{atc_external_url}/builds/#{build_id}" - if File.file?(url) - url = File.read(url).chomp + if File.file?("#{workdir}/#{url}") + url = File.read("#{workdir}/#{url}").chomp end @target_url ||= url end end end