summaryrefslogtreecommitdiff
path: root/lib/rake/trace_output.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake/trace_output.rb')
-rw-r--r--lib/rake/trace_output.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rake/trace_output.rb b/lib/rake/trace_output.rb
index e4d61cf..1cd1945 100644
--- a/lib/rake/trace_output.rb
+++ b/lib/rake/trace_output.rb
@@ -11,7 +11,10 @@ module Rake
if strings.empty?
output = sep
else
- output = strings.map { |s| s.end_with?(sep) ? s : s + sep }.join
+ output = strings.map { |s|
+ next if s.nil?
+ s =~ /#{sep}$/ ? s : s + sep
+ }.join
end
out.print(output)
end