lib/travis/tools/completion.rb in travis-1.5.8.travis.356.4 vs lib/travis/tools/completion.rb in travis-1.5.8

- old
+ new

@@ -24,10 +24,10 @@ source = "source " << cmp_file RCS.each do |file| next unless File.exist? file and File.writable? file next if File.read(file).include? source - File.open(file, "a") { |f| f.puts("", "# added by travis gem", "[ -f #{CMP_FILE} ] && #{source}") } + File.open(file, "a") { |f| f.puts("", "# added by travis gem", "[ -f #{cmp_file} ] && #{source}") } end end def completion_installed? source = "source " << config_path