Skip to content

Commit

Permalink
Merge pull request #1974 from Sherry520/issue_ruby
Browse files Browse the repository at this point in the history
Modify ruby scripts: File.exists? to File.exist?
  • Loading branch information
ben authored Aug 13, 2024
2 parents 1ca265b + 09a5d12 commit 7ae30a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/07-git-tools/git-credential-read-only
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OptionParser.new do |opts|
end.parse!

exit(0) unless ARGV[0].downcase == 'get' # <2>
exit(0) unless File.exists? path
exit(0) unless File.exist? path

known = {} # <3>
while line = STDIN.gets
Expand Down

0 comments on commit 7ae30a9

Please sign in to comment.