Skip to content

Commit

Permalink
Modify ruby scripts: File.exists? to File.exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherry520 committed Aug 13, 2024
1 parent 1ca265b commit 09a5d12
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 09a5d12

Please sign in to comment.