Skip to content

Commit

Permalink
Merge pull request #595 from lifeofguenter/do-not-fail-bashrc
Browse files Browse the repository at this point in the history
Do not fail .bashrc if travis is not installed
  • Loading branch information
BanzaiMan authored Apr 24, 2020
2 parents a9e144a + 68dda75 commit e6a6cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/travis/tools/completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def install_completion
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", "[ ! -s #{cmp_file} ] || #{source}") }
end
end

Expand Down

0 comments on commit e6a6cbc

Please sign in to comment.